Tomek Czajka's submission of Magic Strings | CodeChef