HCLTech interview question

write a program to find all permutations of the input string