possible permutations of string python code example Example: find all permutations of a string ABC ACB BAC BCA CBA CAB