Jugal Rawlani's submission of ATM | CodeChef