Count Binary Substrings Leetcode Solution 1