Nimisha Patel's submission of ATM | CodeChef