Project Euler #73: Counting fractions in a range | HackerRank