Leetcode Subarray From A Binary Compound