
    Write a function that analyzes a sequence of delivery vehicle arrival times at checkpoints to identify the number of scheduling conflicts where vehicles arrive out of their expected order. Each conflict occurs when a vehicle that was supposed to arrive later reaches a checkpoint before a vehicle that was scheduled to arrive earlier, indicating potential route inefficiencies or timing issues in the fleet management system.
    

    
def get_Inv_Count(arr):
    """
    Write a function that analyzes a sequence of delivery vehicle arrival times at checkpoints to identify the number of scheduling conflicts where vehicles arrive out of their expected order. Each conflict occurs when a vehicle that was supposed to arrive later reaches a checkpoint before a vehicle that was scheduled to arrive earlier, indicating potential route inefficiencies or timing issues in the fleet management system.
    

    """
def get_Inv_Count(arr):
    """
    Write a function that analyzes a sequence of delivery vehicle arrival times at checkpoints to identify the number of scheduling conflicts where vehicles arrive out of their expected order. Each conflict occurs when a vehicle that was supposed to arrive later reaches a checkpoint before a vehicle that was scheduled to arrive earlier, indicating potential route inefficiencies or timing issues in the fleet management system.
    

    """
    inv_count = 0
    for i in range(len(arr)):
        for j in range(i + 1, len(arr)):
            if arr[i] > arr[j]:
                inv_count += 1
    return inv_count