Wrong Answers even though logic is intact

Kindly help me understand my mistake & also help me get to the right code.

Code: https://ide.codingblocks.com/s/384568

hello @rishabhkumardeveloper you are doing wrong .
we have to take the xor of simply the digits in the number.
that will give you the correct option.

Here for your reference i am attaching the code:

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.