Count Number Of Substrings Leetcode Contest