Range Xor(test cases)

Here is my code:


This code is giving run time error for two test cases. Please help me to find what is the error.

@Codecracaker532
Your logic needs change
Refer this code once
The update for queries is different than the one you’ve done

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.