Ninad Sutrave's submission of ATM | CodeChef