Solve the 'Generate Parentheses' question