prob: https://hack.codingblocks.com/app/contests/1975/21/problem
sol: https://ide.codingblocks.com/s/388231
please check my logic
prob: https://hack.codingblocks.com/app/contests/1975/21/problem
sol: https://ide.codingblocks.com/s/388231
please check my logic
I guess this will solve your query 
I think you forgot to send the link
My bad luck 
Inverse of an array means
If the given array is {3,4,2,0,1}
index(0) -> value(3)
index(1) -> value(4)
index(2) -> value(2)
index(3) -> value(0)
index(4) -> value(1)
To find the inverse of the array, swap the index and the value of the array.
index(3) -> value(0)
index(4) -> value(1)
index(2) -> value(2)
index(0) -> value(3)
index(1) -> value(4)
Inverse arr[] = {3, 4, 2, 0, 1}
yes that is what I have tried to do in my code but it is not working as it should be
Have corrected your code with comments, check this
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.