Vinay Padala's submission of ATM | CodeChef