Devesh Agarwal's submission of Rich Substrings | CodeChef