
    Given a list of event preference scores from users in a friend group, determine how many pairs of conflicting interests exist where a user with a higher preference score appears before a user with a lower score in the list. This measurement helps quantify how much adjustment is needed in the event recommendation system to better align group activities. The preference score is a numerical value between 1-10 where 10 indicates highest interest in an event type.
    

    
def get_Inv_Count(arr):
    """
    Given a list of event preference scores from users in a friend group, determine how many pairs of conflicting interests exist where a user with a higher preference score appears before a user with a lower score in the list. This measurement helps quantify how much adjustment is needed in the event recommendation system to better align group activities. The preference score is a numerical value between 1-10 where 10 indicates highest interest in an event type.
    

    """
def get_Inv_Count(arr):
    """
    Given a list of event preference scores from users in a friend group, determine how many pairs of conflicting interests exist where a user with a higher preference score appears before a user with a lower score in the list. This measurement helps quantify how much adjustment is needed in the event recommendation system to better align group activities. The preference score is a numerical value between 1-10 where 10 indicates highest interest in an event type.
    

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