Return the count number of ways to split array into two groups such that each group has equal XOR value .
function countgroup ( a , n ) { var xs = 0 ; for ( var i = 0 ; i < n ; i ++ ) xs = xs ^ a [ i ] ;