array, 3sum, O(n)