Manika Sharma's submission of ATM | CodeChef