All Permutations

All Permutations

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

example

Input: String (string).

Output: Array of strings (string).

Examples:

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