Garima Joshi's submission of ATM | CodeChef