this problem was passing sampl test cases when performed
a^b;
XOR profit problem is failing test cases
@kishoretaru iterate over all possible x and y in double loop and check every ans and keep storing maximum. you can’t just take value of a^b it dont gaurantee max.
i hope its cleared if yes dont forget to mark it as resolved and hit like 
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.