3Sum solution