Given an integer array nums and an integer target, find three integers in nums whose sum is closest to target and return that sum. Each input has exactly one answer.
Input
numstargetOutput: the closest achievable sum.
-1 2 1 -4 1
2
-1 + 2 + 1 = 2 is closest to 1.
0 0 0 1
0
Run your code against the sample tests, or Submit to run the full suite.