HackerRank StringStream in C++ problem solution - TheCScience