method to compute all permutations of a string
print all valid combinatons of parentheses