def intersects(box1, box2):
    """
    Check if two boxes intersects with each other.
    Box are in the form of [x1, y1, x2, y2]
    Returns:
        bool
    """
    max_x1 = max(box1[0], box2[0])
    max_y1 = max(box1[1], box2[1])
    min_x2 = min(box1[2], box2[2])
    min_y2 = min(box2[3], box2[3])

    if max_x1 < min_x2 and max_y1 < min_y2:
        return True
    else:
        return False