Count Number Of Homogeneous Substrings Leetcode Solution 1969