Approach hintTry it first, then revealHide
If the total XOR is 0, any split into two parts works. Otherwise you need at least three parts whose XOR each equals the total, which a greedy left-to-right scan can verify.
If the total XOR is 0, any split into two parts works. Otherwise you need at least three parts whose XOR each equals the total, which a greedy left-to-right scan can verify.