Project Euler #108: Diophantine reciprocals I

Problem Name:
Project Euler #108: Diophantine reciprocals I
Site:HackerRank
Links:
Tags:
Problem setters: