solved Generate Parentheses