Aakash Pahwa's submission of ATM | CodeChef