1-liner ^^
time: O(N); space: O(1)\n\nvector<int> findArray(vector<int>& p)\n{\n\treturn {begin(p), adjacent_difference(begin(p), end(p), begin(p), bit_xor{})};\n}\n
**time: `O(N)`; space: `O(1)`**\n```\nvector<int> findArray(vector<int>& p)\n{\n\treturn {begin(p), adjacent_difference(begin(p), end(p), begin(p), bit_xor{})};\n}\n```
['C', 'C++']