Easy Solution | Python3 Beats 99%
\n# Code\n\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        lst=[pref[0]]\n        for i in range(len(pref)-1):\n            ls
\n# Code\n```\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        lst=[pref[0]]\n        for i in range(len(pref)-1):\n            lst.append(pref[i]^pref[i+1])\n        return lst\n\n\n```
['Python3']