My code is correct and has less time complexity but than also it’s giving TLE …
This is the link to my code Please check…
Range XOR giving TLE
yours has some minor issues, you can look at this code, it has comments too, it iwll help you out