```
public class Solution {
public int FindMaximumXOR(int[] nums) {
int result = 0;
int max = 0;
for (int i=0;i<nums.Length;i++) {
for (int j=i+1;j<nums.Length;j++) {
result = nums[i] ^ nums[j];
if (result > max) max = result;
}
}
return max;
}
}
```