Generate All Valid Parentheses Leetcode Problem