HackerRank Day 19: Interfaces problem solution - TheCScience