You are given an array pref where pref[i] equals the XOR of arr[0] through arr[i] for some hidden array arr. Reconstruct and return arr, which is guaranteed to be unique.
Input: A JSON object {"pref": [<non-negative integers>]}.
Output: Return the original array arr.
Input: {"pref":[5,2,0,3]}
Output: [5,7,2,3]
Explanation: Successive prefix XORs recover [5,7,2,3].Input: {"pref":[13]}
Output: [13]
Explanation: With one prefix the array is itself -> [13].1 <= len(pref) <= 10^50 <= pref[i] <= 10^6