Ashish Khatkar's submission of Count Substrings | CodeChef