Unable to understand question

in the given custom test case , l=1 and r=4 and x=6 then the maximum value of xor can be 7(111) by the xor of 6 and 1 but the answer is given as 10 . how?

@tanjuljain19
It should be 14 I believe
If we pick 10 and xor it with 6 ans will be 14 which is max
I’ll send the update to them team
Thanks for pointing it out
Kindly close this doubt

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.