Shreyansh Sinha's submission of ATM | CodeChef