Given a set of numbers, enumerate out all possible orderings of the numbers. For example:

Input: {1,2,3}

All possible outputs would be the permutations of the numbers:

{1,2,3} {1,3,2} {2,1,3} {2,3,1} {3,1,2} {3,2,1}

So there are six different permutations.