[arrays] Finding three elements in an array whose sum is closest to a given number