Count Number Of Substrings Leetcode 150 Problem