first solution for 3sum problem

not accepted, too slow
solution for 3sum problem