結果 : python program to print all permutations of a string in lexicographical order without recursion