Rajan Jha's submission of Magical Strings | CodeChef