Rajat Mittal's submission of Devasena | CodeChef