Vibhor Sehgal's submission of ATM | CodeChef