vishal sharma's submission of ATM | CodeChef