For this Question: Given an array of N integers. Find the xor_value of the array.
xor_value of an array is the xor of all the elements if the ith element is taken i number of times (1 based indexing).
For example xor_value of array [2, 3, 1, 4] = 2 xor 3 xor 3 xor 1 xor 1 xor 1 xor 4 xor 4 xor 4 xor 4 = 3.First line of input contains N.
Second line of input contains N space seperated integers, representing the elements of the array.

Constraints
1 <= N <= 100000
1 <= Arr[i] <= 100000Print a single integer, the xor_value of the array.Sample input
4
2 3 1 4

Sample output
3

Sample Input
5
2 7 10 2 10

Sample Output
2, I have written this Solution Code: import java.io.*;
import java.util.*;

class Main {
    public static void main (String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ;
        int n = Integer.parseInt(br.readLine()) ;

        String[] arr = br.readLine().split(" ") ;

        int ans = 0 ;

        for(int i=0; i<n; i += 2){
                ans ^= Integer.parseInt(arr[i]) ;
        }

        System.out.print(ans) ;

    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?