HackerRank Arrays Introduction in C++ problem solution - TheCScience