def is_overlapping(interval_A, interval_B):
    """
    this subroutine checks if two intervals intersect with each other; it returns True if
    they do and False otherwise
    input : interval_A - first interval
            interval_B - second interval
    output: is_intersecting - True if interval_A intersects interval_B, False otherwise
    """
    is_intersecting = interval_A[1] >= interval_B[0] and interval_A[0
        ] <= interval_B[1] or interval_B[1] >= interval_A[0] and interval_B[0
        ] <= interval_A[1]
    return is_intersecting
