Count Number Of Substrings Leetcode 15090