if we have given an array of suppose size 4 and elements of array are;
input: 1 3 2 0
output : 3 0 2 1
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.