Hackerrank Day 12: Inheritance | Hackerrank Solutions in C++