return a single integer denoting minimum xor value
First and only argument of input contains an integer array A