Wojciech Bukowicki's submission of Rich Substrings | CodeChef