Any ONE who can solve this problem....
"Permutations: The challenge is to find the algorithm used to create all possible permutations of a given string"

Please try to make some effort to do your OWN homework!!!!
Here several programmers can solve it without even blink of an eye, BUT I am pretty sure no one will take this bait to solve your school homework.

Use the next_permutation algorithm that's part of the C++ standard library.