Rosetta Problems

Make the XOR of All Segments Equal to Zero

https://leetcode.com/problems/make-the-xor-of-all-segments-equal-to-zero