solve 3sum