All Permutations

All Permutations

Given a string, return all possible permutations of its characters, sorted alphabetically.

example

Input: String (str).

Output: Iterable of strings (str).

Examples:

assert list(string_permutations("ab")) == ["ab", "ba"]
assert list(string_permutations("abc")) ==...
You should be an authorized user in order to see the full description and start solving this mission.