public static void Main() { int[] arr = { 8, 1, 2, 12 }; int n = arr.Length; Console.WriteLine("Max Subarray XOR is " + maxSubarrayXOR(arr, n)); }
We will using maxSubarrayXOR as our function.