Ever used pairwise() ??
Intuition\nI have knowledge of builtin modules.\n\n# Code\n\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        return [pref[0]] +
# Intuition\nI have knowledge of builtin modules.\n\n# Code\n```\nclass Solution:\n    def findArray(self, pref: List[int]) -> List[int]:\n        return [pref[0]] + [ a ^ b for a, b in pairwise(pref)]\n```\n\n> Comment a better solution than this.
['Python3']