Dinesh Goyal's submission of Mathology | CodeChef