✅C++ || ✅Simple 4 Line || O(N) || O(1)
\nvector<int> findArray(vector<int>& pref) {\n        int n = pref.size();\n        \n        vector<int> arr(n);\n        arr[0] = pref[0];\n        \n        
```\nvector<int> findArray(vector<int>& pref) {\n        int n = pref.size();\n        \n        vector<int> arr(n);\n        arr[0] = pref[0];\n        \n        for( int i=1 ; i<pref.size() ; i++ ){\n            \n            arr[i] = pref[i-1]^pref[i] ;\n        }\n        return arr;\n    }\n```
[]