public static int[] FindOriginArray(int[] pref)
int[] res = new int[pref.Length];
for (int i = 1; i < pref.Length; i++)
res[i] = pref[i - 1] ^ pref[i];
public static void Main()
Console.WriteLine("UniLecs");
Console.WriteLine(string.Join(", ", FindOriginArray(new int[] { 5, 2, 0, 3, 1 })));