Count Number Of Homogeneous Substrings Leetcode Solution 19