Nishant Gupta's submission of ATM | CodeChef