Concept Flow - Generate All Permutations of Array
Start with empty permutation
Choose element not in current permutation
Add element to current permutation
Is permutation complete?
No→Repeat choosing next element
Yes
Save current permutation
Backtrack: Remove last element
↩Back to choosing element
Build permutations by adding unused elements one by one, save when full length reached, then backtrack to try other options.