Uber interview question

Three Sum question from leetcode was asked