Tomaz Hocevar's submission of Magic Strings | CodeChef