Problem 2433 · Medium
Xor is its own inverse, so each original value is the xor of two neighboring prefix values.
Open the interactive visualisation