write a short program that is able to output all the permutations of the integers 1,2,3,4. There should be 4!=24 of them. The program should be general enough to be able to output the number 1,....,n where the largest would be 6. The permutations to be output should be stored in a 2d array of size 5000 by 6, the row is the number and the column is the digit. I also have the written algorithm.