Generate All Binary Strings Leetcode Python