leetcode: generate parentheses