Backend Engineer
Senior
programming
Create a function that returns all possible permutations of a given string, ensuring that no permutation is repeated in the result. ### Constraints: - The input string will only consist of lowercase English letters. Its length will not exceed 8 characters. ### Examples: 1. Input: 'a' Output: ['a'] 2. Input: 'aba' Output: ['aab', 'aba', 'baa']
Suggested Answer