HackerRank Day 13: Abstract Classes problem solution - TheCScience