if we have given an array of suppose size 5 and elements of array are;
input: 1 3 2 5 4
output : 3 5 2 6 4
means we need to find array[array[i]]:
but when I print it directly array[array[i]] without copying to temp array shows error/run time error .
please help me with this.