{"ScriptPreparationCode":null,"TestCases":[{"Name":"1","Code":"function findSingle(arr) {\r\n let singleOccurence = null;\r\n\r\n arr.forEach((item) =\u003E {\r\n let count = arr.filter(i =\u003E i === item).length;\r\n if (count === 1) {\r\n singleOccurence = item;\r\n }\r\n });\r\n \r\n return singleOccurence;\r\n}\r\n\r\nconst arr = [10, 2, 2 , 1, 0, 0, 10];\r\nfindSingle(arr);","IsDeferred":false},{"Name":"2","Code":"function findSingle(arr) {\r\n return arr.reduce((r, a) =\u003E r ^ a);\r\n}\r\n\r\nconst arr = [10, 2, 2 , 1, 0, 0, 10];\r\nfindSingle(arr);","IsDeferred":false}]}