Variant of 3Sum

Just update the closest number each loop.