Nikolay Domashenko's submission of Count Substrings | CodeChef