Generate Valid Parentheses Leetcode Python Challenges