
    Given a series of delivery performance scores for different route segments, find the optimal combination of sequential routes that demonstrate consistent improvement in efficiency metrics and would yield the highest overall fleet performance rating when their scores are multiplied together. The performance score for each route segment accounts for delivery time, fuel usage, and customer satisfaction, and the selected routes must follow a strictly increasing pattern of scores to ensure progressive improvement in service quality.
    

    
def max_product(arr):
    """
    Given a series of delivery performance scores for different route segments, find the optimal combination of sequential routes that demonstrate consistent improvement in efficiency metrics and would yield the highest overall fleet performance rating when their scores are multiplied together. The performance score for each route segment accounts for delivery time, fuel usage, and customer satisfaction, and the selected routes must follow a strictly increasing pattern of scores to ensure progressive improvement in service quality.
    

    """
def max_product(arr):
    """
    Given a series of delivery performance scores for different route segments, find the optimal combination of sequential routes that demonstrate consistent improvement in efficiency metrics and would yield the highest overall fleet performance rating when their scores are multiplied together. The performance score for each route segment accounts for delivery time, fuel usage, and customer satisfaction, and the selected routes must follow a strictly increasing pattern of scores to ensure progressive improvement in service quality.
    

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