finish 3sum