ujjwal kumar's submission of ATM | CodeChef