threeSumClosest, using greedy method