a simple c# program to do permutation