write 3Sum in O(n^2) solution