My one case is showing error

I think I have done everything but still I don’t understand why one case is showing error. Kindly check my error and help me find the error in my code.

@sinchan1509_1a917d7b6cc3cbb9,
your logic is not correct

Logic: Inverse is Simply swapping the value of the array with the value at that index.

Algo

  1. Create a new Array say narr and original array is arr.
  2. now at the arr[i]th index of narr save the ith value.(previously i is the index and arr[i] is the value bt now arr[i] is the index and i is the value.)
  3. print new array.

here’s the updated code https://ide.codingblocks.com/s/659002

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

ok thank you so much for the help now the concept about inverse of array is completely clear to me