Count Binary Substrings Leetcode Solution 862 Heads