HackerRank Day 4: Count Objects problem solution - TheCScience