coder_penguin's submission of Rich Substrings | CodeChef