Reverse XOR
\nC++\ncpp\nvector<int> findArray(vector<int>& pref) {\n    for (int i = 0, prev = 0; i < pref.size(); ++i) {\n \xA0 \xA0 \xA0 \xA0pref[i] ^= prev;\n \xA0 \xA0 
\n**C++**\n```cpp\nvector<int> findArray(vector<int>& pref) {\n    for (int i = 0, prev = 0; i < pref.size(); ++i) {\n \xA0 \xA0 \xA0 \xA0pref[i] ^= prev;\n \xA0 \xA0 \xA0 \xA0prev ^= pref[i];\n    }    \n    return pref;\n}\n```
[]