3sums.cpp

add 2 while loop is critical