For this Question: Given an integer array A of N integers, find the pair of integers in the array which have minimum XOR value. Report the minimum XOR value.First line denotes N, the size of the array.
Next line denotes N space-separated array elements.

Constraints:
2 <= N <= 100000
0 <= A[i] <= 10^7Print a single integer denoting minimum xor valueSample Input 
4
0 2 5 7

Sample Output
2

Explanation:
0 xor 2 = 2

Sample Input 
4
0 4 7 9

Sample Output 
3, I have written this Solution Code: a=int(input())
lis = list(map(int,input().split()))
val=666666789
for i in range(a+1):
    for j in range(i+1,a):
        temp = lis[i]^lis[j]
        if(temp<val):
            val = temp
        if(val==0):
            break
print(val), In this Programming Language: Python, Now tell me if this Code is compilable or not?