JPMorganChase Interview Question

Count binary substrings from leetcode