Problem In uderrstanding the test case

5
0 3
0 5
0 10
0 6
1 1 4 6

How it’s showing answer 10 while number have to in between l to r and here l=1 and r=4.

@yaduvanshii092
after first 4 queries array becomes
3 5 10 6
after taking xor of 6 with elements in range 1-4
5 3 12 0
So the maximum xor is given by 6^10 hence Y = 10

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.