Ritesh's submission of ATM | CodeChef