Aman Singhal's submission of ATM | CodeChef