Find All Possible Stable Binary Arrays I

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(\text{zero} × \text{one})

Space Complexity

O(\text{zero} × \text{one})