HackerRank Input and Output in c++ problem solution - TheCScience