title: Find Index Of An Extra Element Present In One Sorted Array 1
signature: findIndexOfAnExtraElementPresentInOneSortedArray1 :: [Integer] -> [Integer] -> Integer -> Integer
  findIndexOfAnExtraElementPresentInOneSortedArray1 arr1 arr2 n = 
source_py: def find_index_of_an_extra_element_present_in_one_sorted_array_1(arr1, arr2, n):
      index = n
      left = 0
      right = (n - 1)
      while (left <= right):
          mid = int(((left + right) / 2))
          if (arr2[mid] == arr1[mid]):
              left = (mid + 1)
          else:
              index = mid
              right = (mid - 1)
      return index
source_cpp: int find_index_of_an_extra_element_present_in_one_sorted_array_1(vector<int> arr1, vector<int> arr2, int n) {
    int index = n;
    int left = 0, right = n - 1;
    while ( left <= right ) {
      int mid = ( left + right ) / 2;
      if ( arr2 [ mid ] == arr1 [ mid ] ) left = mid + 1;
      else {
        index = mid;
        right = mid - 1;
      }
    }
    return index;
  }