HackerRank Day 17: More Exceptions problem solution - TheCScience