Rishabh Rao's submission of ATM | CodeChef