Xtreme Labs Interview Question

Implement an algorithm to print all permutation of valid parentheses.