Count Binary Substrings Leetcode Javascript 30