def overlaps(low1: int, high1: int, low2: int, high2: int) -> bool:
    """
    Returns true if the two regions
    [low1, high1] and [low2, high2]
    overlap.
    """
    return high1 >= low2 and high2 >= low1