Tanmay Agrawal's submission of Magical Strings | CodeChef