Komal mishra's submission of ATM | CodeChef