Please check the code

this code is passing provided test cases in que after that also all the test cases are wrong after submission

Hi aditya,
Your logic is not correct for this question.
You can first find xor of x and y.
Then try to maximise this xor by applying some operation.
Please let me know if you need full approach and code.

please explain the approach

can’t understand the provided hint