HackerRank Abstract Classes - Polymorphism in C++ problem solution - TheCScience