Nimesh Solanki's submission of ATM | CodeChef