
    Given a list of professional skill ratings from users within a 50-mile radius, determine the highest potential collaboration value by finding the maximum product of skill ratings that form an increasing expertise sequence. The skill ratings are positive integers where higher numbers represent more advanced expertise levels, and the sequence must maintain ascending order to ensure progressive skill development within the networking group.
    

    
def max_product(arr):
    """
    Given a list of professional skill ratings from users within a 50-mile radius, determine the highest potential collaboration value by finding the maximum product of skill ratings that form an increasing expertise sequence. The skill ratings are positive integers where higher numbers represent more advanced expertise levels, and the sequence must maintain ascending order to ensure progressive skill development within the networking group.
    

    """
def max_product(arr):
    """
    Given a list of professional skill ratings from users within a 50-mile radius, determine the highest potential collaboration value by finding the maximum product of skill ratings that form an increasing expertise sequence. The skill ratings are positive integers where higher numbers represent more advanced expertise levels, and the sequence must maintain ascending order to ensure progressive skill development within the networking group.
    

    """
    n = len(arr)
    mpis = arr[:]
    for i in range(n):
        current_prod = arr[i]
        j = i + 1
        while j < n:
            if arr[j - 1] > arr[j]:
                break
            current_prod *= arr[j]
            if current_prod > mpis[j]:
                mpis[j] = current_prod
            j = j + 1
    return max(mpis)