Range Xor qurstion


one test case passed and 2 showing run error ,modifcations in code required?

Hello @Vibhuti0206

Here is the code
Try to dry run this code on the example test case to understand how it works.

Let me know if you still need any help.