docs: def get_peak_indices(times: List, counts: List) -> np.array:
      """
      Given an increasing list of times as seconds past midnight and a
      list of trip counts at those respective times,
      return a pair of indices i, j such that times[i] to times[j] is
      the first longest time period such that for all i <= x < j,
      counts[x] is the max of counts.
      Assume times and counts have the same nonzero length.
      """
      max_runs = get_max_runs(counts)
  
      def get_duration(a):
          return times[a[1]] - times[a[0]]
  
      index = np.argmax(np.apply_along_axis(get_duration, 1, max_runs))
      return max_runs[index]