title: Find The Maximum Subarray Xor In A Given Array
signature: find_the_maximum_subarray_xor_in_a_given_array <- function(arr, n) {
source_py: def find_the_maximum_subarray_xor_in_a_given_array(arr, n):
      ans = (- 2147483648)
      for i in range(n):
          curr_xor = 0
          for j in range(i, n):
              curr_xor = (curr_xor ^ arr[j])
              ans = max(ans, curr_xor)
      return ans
source_cpp: int find_the_maximum_subarray_xor_in_a_given_array(vector<int> arr, int n) {
    int ans = INT_MIN;
    for ( int i = 0;
    i < n;
    i ++ ) {
      int curr_xor = 0;
      for ( int j = i;
      j < n;
      j ++ ) {
        curr_xor = curr_xor ^ arr [ j ];
        ans = max ( ans, curr_xor );
      }
    }
    return ans;
  }