I actually did not understood this question

I felt it asked to remove XOR but please explain me the question

hi @numanshaikh25
the question says u r give left and right bounds, u have to find max xor u can obtain by considering all pairs in that bound

eg [5,6] --> pairs {5,5}, {5,6}, {6,6} max xor here is of {5,6} i.e 3

refer here only if u r having implementation difficulties and after u have tried https://ide.codingblocks.com/s/656553 :slight_smile:

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.