Pergunta de entrevista da empresa HCLTech

write a program to find all permutations of the input string