Samarth Gupta's submission of Fombinatorial | CodeChef