Generate Parentheses solved