Glassdoor interview question

Generate all possible parentheses for a given n