
    Given a list of delivery priorities where each number represents the urgency level of a delivery (1 being most urgent), determine how many times a less urgent delivery is scheduled before a more urgent one in the current route sequence. This count of priority conflicts will help optimize the delivery route by identifying how many swaps are needed to ensure higher priority deliveries are handled first.
    

    
def get_Inv_Count(arr):
    """
    Given a list of delivery priorities where each number represents the urgency level of a delivery (1 being most urgent), determine how many times a less urgent delivery is scheduled before a more urgent one in the current route sequence. This count of priority conflicts will help optimize the delivery route by identifying how many swaps are needed to ensure higher priority deliveries are handled first.
    

    """
def get_Inv_Count(arr):
    """
    Given a list of delivery priorities where each number represents the urgency level of a delivery (1 being most urgent), determine how many times a less urgent delivery is scheduled before a more urgent one in the current route sequence. This count of priority conflicts will help optimize the delivery route by identifying how many swaps are needed to ensure higher priority deliveries are handled first.
    

    """
    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