Is mirror inverse

https://hack.codingblocks.com/contests/c/509/184

https://ide.codingblocks.com/#/s/24450

Your code gives true even for inputs like 32145 , which should have been false.
Check and correct your code.
The question is similar to the one of finding the inverse number.