Generate Parentheses

Try to solve the Generate Parentheses problem.

Statement

For a given number, n, generate all combinations of balanced parentheses.

Constraints:

  • 1≤1 \leq n ≤10\leq 10

Examples