Is Mirror Inverse?

ques–https://hack.codingblocks.com/contests/c/509/184
ans—https://ide.codingblocks.com/#/s/25913

2 test case failing

https://ide.codingblocks.com/#/s/29657
^ you may refer the above comments