Driver code
public static void Main ( string [ ] args ) { int N = 7 ; ArrayList nums = new ArrayList ( ) { 3 , 4 , 7 , 1 , 2 , 5 , 6 } ; int count = make_xor_half ( nums ) ; if ( count == - 1 ) Console . Write ( - 1 + " STRNEWLINE " ) ; else if ( count == 1 ) Console . Write ( nums [ N ] + " STRNEWLINE " ) ; else Console . Write ( nums [ N ] + " ▁ " + nums [ N + 1 ] + " STRNEWLINE " ) ; } }