A program to print all the permutation of the string