I thought about this but i could not figure out. how can i see that the XOR will be maximum in this case?

i can see that sum will be maximum if the numbers are big.
but how to see for xor. bits and positions will decide this.
pls help to solve