Generate Permutations

Hard
recursion Google Amazon Two Sigma

Test Cases

Python Editor

Output

Click "Run" to see results...