Manoj Patidar's submission of ATM | CodeChef