Problem 3702 · Medium
If the whole array XORs to a non-zero value, keep everything; otherwise drop one non-zero element.
Open the interactive visualisation