Maximum xor subaaray

it is giving wrong answer in one test case ?

Hello,
If the max value of subarray is greater than the greatest xor value. Your code will give incorrect answer.