
    Given a sequence of student assessment scores representing their mastery levels across different concepts, determine the number of concept pairs where a later concept in the sequence has a lower mastery score than an earlier one. This count will help identify how many learning material reorderings are needed to create an optimized learning path where concepts build upon each other in increasing order of difficulty and student readiness.
    

    
def get_Inv_Count(arr):
    """
    Given a sequence of student assessment scores representing their mastery levels across different concepts, determine the number of concept pairs where a later concept in the sequence has a lower mastery score than an earlier one. This count will help identify how many learning material reorderings are needed to create an optimized learning path where concepts build upon each other in increasing order of difficulty and student readiness.
    

    """
def get_Inv_Count(arr):
    """
    Given a sequence of student assessment scores representing their mastery levels across different concepts, determine the number of concept pairs where a later concept in the sequence has a lower mastery score than an earlier one. This count will help identify how many learning material reorderings are needed to create an optimized learning path where concepts build upon each other in increasing order of difficulty and student readiness.
    

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