3Sum Closest : O(n^2)

time complexity is O(n^2) and space complexity is O(1)