Maximum xor subarray

https://ide.codingblocks.com/s/231803 why is my testcase 3 failing

@Kush_1312
4
1 2 8 12
for this test case your code is giving 14 as a but correct answer is 12
for reference you can see this code

this is a brute force approach . whys is my approach giving me wrong output?

How is this a brute Force method when you are using tries.

Your code is the brute force one. Why is my code giving me wrong answer?

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.