tushar gupta's submission of ATM | CodeChef