Generate All Valid Parentheses Leetcode Python Programs