HackerRank Python: Division problem solution - TheCScience