Ex8.5

Implement an algorithm to print all valid (e.g., properly opened and
closed) combi- nations of n-pairs of parentheses.
EXAMPLE:
input: 3 (e.g., 3 pairs of parentheses)
output: ()()(), ()(()), (())(), ((()))