can you please tell the base case of this problem …
Base case of this problem?
When the binary string length is zero, return true value (or whichever value you are taking for accepted string).
This means that a blank string will always be counted as an accepted binary string with no consecutive ones.
Or you can take a single length string as well, as it can have at max one 1.