Inverse of a array

plzz guide me in this problem i am not able to understand the problem

Hey @gandhivaibhav01_1acde66cce1e5144 inverse of an array means elements of an array are swapped with its indices.
like make a temp arr of size n and
run a for loop from 0 to n
and inside it arr[a[i]] = i;
here the number is swapped with its index where a is the intital index

a is the original array given

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.