HackerRank For Loop in C++ problem solution - TheCScience