aakash mittal's submission of Magical Strings | CodeChef