Count Binary Substrings Leetcode Python