Python3 Solution
\n\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        N=len(pref)\n        arr=[pref[0]]\n        \n        for i in range(1,N):\
\n```\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        N=len(pref)\n        arr=[pref[0]]\n        \n        for i in range(1,N):\n            arr.append(pref[i-1]^pref[i])\n            \n        return arr    \n```
['Python', 'Python3']