Masoom Mittal's submission of ATM | CodeChef