Pregunta de entrevista de Xtreme Labs

Implement an algorithm to print all permutation of valid parentheses.