XOR profit problem doubt in question

a^b is only the maxm value please tell what exactly the question is saying and what will be modifications in my code

hi @himanshuanand729,
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