Samaksh Yadav's submission of ATM | CodeChef