Sponsored
Use these hints if you're stuck. Try solving on your own first.
How many valid binary substrings exist in "000111", and how many in "11100"? What about "00011100"?
Solve with full IDE support and test cases