assume each input have exactly one solution

O(n2)。剪枝与3Sum不同。