Test program to generate all of the permutations of a string using recursion