Generate All Valid Parentheses Leetcode Java