
    Write a function to analyze an emergency room triage queue by counting instances where patients with lower urgency scores are positioned ahead of those with higher urgency scores, potentially indicating incorrect treatment prioritization. The function should process a list of patient severity scores, where each score is a composite value derived from vital signs and symptoms, and return the total count of such priority misalignments to help optimize the triage order.
    

    
def get_Inv_Count(arr):
    """
    Write a function to analyze an emergency room triage queue by counting instances where patients with lower urgency scores are positioned ahead of those with higher urgency scores, potentially indicating incorrect treatment prioritization. The function should process a list of patient severity scores, where each score is a composite value derived from vital signs and symptoms, and return the total count of such priority misalignments to help optimize the triage order.
    

    """
def get_Inv_Count(arr):
    """
    Write a function to analyze an emergency room triage queue by counting instances where patients with lower urgency scores are positioned ahead of those with higher urgency scores, potentially indicating incorrect treatment prioritization. The function should process a list of patient severity scores, where each score is a composite value derived from vital signs and symptoms, and return the total count of such priority misalignments to help optimize the triage order.
    

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