Sourabh's submission of Rich Substrings | CodeChef