Priyanshu Kumar's submission of ATM | CodeChef