Given the following function call:
- permutations('abc');
And the resulting output:
- ["abc", "acb", "bac", "bca", "cab", "cba"];
Create a function definition that achieves the output with the given input.
Given the following function call:
And the resulting output:
Create a function definition that achieves the output with the given input.