Vidhi's submission of ATM | CodeChef