I'm pretty sure this is called permutation. WHat I need to do is take a variable number of letters/numbers an compute all the possible combinations. Example:
Given string: abc
Results:
abc
acb
bca
bac
cab
cba

And I have no clue as to how to do this. I need to be able to do this with any number of letters up to 10 at least. Code would be great. But if you could explain the process that would be good too.

Thanks in advance.