Samarth Gupta's submission of Devasena | CodeChef