This function mainly does XOR of all elements of arr1 [ ] and arr2 [ ]
void findMissing ( int arr1 [ ] , int arr2 [ ] , int M , int N ) { if ( M != N - 1 && N != M - 1 ) { cout << " Invalid ▁ Input " ; return ; }