GenerateParentheses solved