code: def interval_intersection_width(a, b, c, d):
      
      return max(0, min(b, d) - max(a, c))
docs: returns the width of the intersection of intervals [a,b] and [c,d]
      (thinking of these as intervals on the real number line)