C3 AI Interview Question

write a algorithms to generate all permute about a string