I have written the following program to find the permutation of all the elements in an array. The values are created properly but the problem is when I am trying to assign the g