Generate All Permutations Of A String In Cpp