✅ C++ || Simple Approach || Easy to understand
\nclass Solution {\npublic:\n    vector<int> findArray(vector<int>& pref) {\n        int n=pref.size();\n        \n        vector<int> cnt;\n        \n        c
```\nclass Solution {\npublic:\n    vector<int> findArray(vector<int>& pref) {\n        int n=pref.size();\n        \n        vector<int> cnt;\n        \n        cnt.push_back(pref[0]);\n        \n        for(int i=0;i<n-1;i++)\n        {\n            \n            cnt.push_back(pref[i]^pref[i+1]);\n        }\n        \n        return cnt;\n    }\n};\n```\n**Don\'t forget to Upvote the post, if it\'s been any help to you**
['C']