Simple Java Solution
Simple Java Solution\n\n# Code\n\nclass Solution {\n    public int[] findArray(int[] pref) {\n        int[] originArray = new int[pref.length];\n        originA
Simple Java Solution\n\n# Code\n```\nclass Solution {\n    public int[] findArray(int[] pref) {\n        int[] originArray = new int[pref.length];\n        originArray[0] = pref[0];\n\n        for (int elementIndex = 1; elementIndex < pref.length; elementIndex++) {\n            originArray[elementIndex] = pref[elementIndex] ^ pref[elementIndex - 1];\n        }\n\n        return originArray;\n    }\n}\n```
['Java']