Samarth Gupta's submission of Number Theory | CodeChef