Find All Possible Stable Binary Arrays II

Find All Possible Stable Binary Arrays II - Coding Problem | K5kC