Driver Code
public static void main ( String args [ ] ) { int arr [ ] = { 5 , 2 , 3 } ; int queries [ ] = { 3 , 8 , 7 } ; int n = arr . length ; int q = queries . length ; sumOfXors ( arr , n , queries , q ) ; } }