Shivam tanay's submission of Devasena | CodeChef