HackerRank Day 4: Class vs. Instance problem solution - TheCScience