Dinesh Goyal's submission of From Rational to Binary | CodeChef