I am currently trying to write a program to compute permutations of the array [0,1,2,3,4,5], I need to save all the permutations to another array and I also need the first digit, 0, to be fixed.

I have searched through quite a bit of literature on doing this, however I can't seem to be able to do it. any help is greatly appreciated. thank you in advance