Max xor pair question

Ans is always coming 0.Pl tell the mistake.

@ayush15goel
You seem to have sent the wrong code or editted it after sending it. There is no output logic in this one.
Please send the correct code.

@ayush15goel
Line 15 and Line 36
Your loop condition is wrong
It should be i>=0 and not i<=0

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.