write ThreeSumClosest solution