Kotlin Opposite of XOR is XOR easy
\nfun findArray(pref: IntArray): IntArray {\n\tvar curr = pref[0]\n\tvar result = mutableListOf(curr)\n\tfor (i in 1 until pref.size) {\n\t\tval new = curr xor 
```\nfun findArray(pref: IntArray): IntArray {\n\tvar curr = pref[0]\n\tvar result = mutableListOf(curr)\n\tfor (i in 1 until pref.size) {\n\t\tval new = curr xor pref[i]\n\t\tresult.add(new)\n\t\tcurr = curr xor (new)\n\t}\n\treturn result.toIntArray()\n}\n```
['Kotlin']