HackerRank Day 4: Classes problem solution - TheCScience