HackerRank C++ Virtual Functions Challenge

HackerRank C++ Virtual Function Challenge