ONE LINER PYTHON-3 SIMPLE SOLUTION EASY TO UNDERSTAND
```class Solution:\n    def findArray(self, p: List[int]) -> List[int]:\n        return [p[0]] +[p[i]^p[i-1]for i in range(1,len(p))]
```class Solution:\n    def findArray(self, p: List[int]) -> List[int]:\n        return [p[0]] +[p[i]^p[i-1]for i in range(1,len(p))]
['Python']