Discussion About Maximum XOR

This is Discussion thread about Maximum XOR

I am code does not give output for large numbers but it is working correctly for small numbers.

can anyone provide any better approach to this problem. my code is of O(n^2) so it give tle