HackerRank Inheritance Introduction in C++ problem solution - TheCScience