
    Given a list of social event engagement scores arranged chronologically, find the sequence of events that showed consistently increasing participation while maximizing the overall impact score (calculated as the product of their individual engagement scores). The sequence must maintain chronological order and each subsequent event must have higher engagement than the previous one.
    

    
def max_product(arr):
    """
    Given a list of social event engagement scores arranged chronologically, find the sequence of events that showed consistently increasing participation while maximizing the overall impact score (calculated as the product of their individual engagement scores). The sequence must maintain chronological order and each subsequent event must have higher engagement than the previous one.
    

    """
def max_product(arr):
    """
    Given a list of social event engagement scores arranged chronologically, find the sequence of events that showed consistently increasing participation while maximizing the overall impact score (calculated as the product of their individual engagement scores). The sequence must maintain chronological order and each subsequent event must have higher engagement than the previous one.
    

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