Generate all combinations of n pairs of well-formed parentheses. Build each string one character at a time, pruning any prefix that can never become valid.
n