Go Simple Solution
\nfunc findArray(pref []int) []int {\n\tans := make([]int, len(pref))\n\tans[0] = pref[0]\n\tfor i := 1; i < len(pref); i++ {\n\t\tans[i] = pref[i-1] ^ pref[i]\
```\nfunc findArray(pref []int) []int {\n\tans := make([]int, len(pref))\n\tans[0] = pref[0]\n\tfor i := 1; i < len(pref); i++ {\n\t\tans[i] = pref[i-1] ^ pref[i]\n\t}\n\treturn ans\n}\n```
['Go']