def is_number_in_intervals(intervals: list, target: int):
    """
    Traverses intervals and checks if the given number is inside an interval.
    Example:
        interval: [[1, 6], [45, 48], [110, 112]]
        number: 2
        return: True
    """
    for interval in intervals:
        # print(f"interval={interval} type(interval)={type(interval)} target={target} type(target)={type(target)}")
        if interval[0] <= target <= interval[1]:
            return True
    return False