Problem 3632 · Medium
Pair every prefix XOR with the earlier prefixes and count the pairs whose XOR value reaches k.
Open the interactive visualisation