Betsol interview question

Solve 3sum in O(n^2) complexity