solved 3sum problem.