HackerRank Inherited Code in C++ problem solution - TheCScience