python3 easy code
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Code\n\nclass Solut
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Code\n```\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        if len(pref)==1:\n            return pref\n        ans=[pref[0]]\n        for i in range(len(pref)-1):\n            ans.append(pref[i]^pref[i+1])\n        return ans\n```
['Python3']