Driver code
public static void Main ( String [ ] args ) { int [ ] A = { 2 , 4 , 1 , 3 , 5 } ; int K = 5 ; int n = A . Length ; constructXORArray ( A , n , K ) ; int [ ] B = { 4 , 75 , 45 , 42 } ; K = 2 ; n = B . Length ; constructXORArray ( B , n , K ) ; } }