Nakul Bharti's submission of ATM | CodeChef