Is Array Mirror Inverse?

Ques–https://hack.codingblocks.com/contests/c/509/204

ans–https://ide.codingblocks.com/#/s/26042

two test case failing… #1 and #2

Your code fails for cases like
5
0 1 2 3 4
Expected output: true
Your output: false