LeetCode
Equal Rational Numbers
Click
here
for an explanation.