HackerRank Day 3: Try, Catch, and Finally problem solution - TheCScience