I have a Python list with a variable number of elements.
[a,b,c,d,e]
I need to rearrange these elements inside the list and find all possible unique combinations.
[a,b,c,d,e]
[d,b,a,e,c]
[e,d,a,c,b], etc.
I cannot have same elements repeated, or have any elements removed:
[a,a,a,d,e] <-- bad