Driver Code
let N = 7 ; let nums = [ 3 , 4 , 7 , 1 , 2 , 5 , 6 ] ; let count = make_xor_half ( nums ) ; if ( count == - 1 ) document . write ( " " ) ; else if ( count == 1 ) document . write ( nums [ N ] + " " ) ; else document . write ( nums [ N ] + " " + nums [ N + 1 ] ) ;