[LC] Add solution to generate parentheses.