code: private int getLeastCommonArrayLength(String[] arr1, String[] arr2) {
          return arr1.length <= arr2.length ? arr1.length : arr2.length;
      }
docs: Returns the size of the smallest array.
  
  @param arr1 the first array
  @param arr2 the second array
  @return the size of the smallest array