Function to find missing element based on binary search approach . arr1 [ ] is of larger size and N is size of it . arr1 [ ] and arr2 [ ] are assumed to be in same order .
static int findMissingUtil ( int [ ] arr1 , int [ ] arr2 , int N ) {