two_sum.cpp solved