Count Binary Substrings Leetcode Javascript Interview