Help me with this Maximum XOR problem

I want solution for this question

with all corner cases took in consideration Please help

Yes how to solve this? Hope this is not from any ongoing challenge.
@ssrivastava990 @ssjgz please help.

from which contest u got this problem ?

no it is not form any ongoing contest my friend gave it to me I don’t know the source

don’t know how to solve this (as problem seems unclear to me ) , also , i think this is from some good platform (not from interview question or all) can u please help @carre @everule1