Priyanshu Kumar's submission of Devasena | CodeChef