
    Given a sequence of social media post engagement scores, determine the highest potential viral impact by finding posts with progressively increasing engagement levels and multiplying their scores together. The posts must be selected in chronological order, and each selected post must have higher engagement than all previously selected posts.
    

    
def max_product(arr):
    """
    Given a sequence of social media post engagement scores, determine the highest potential viral impact by finding posts with progressively increasing engagement levels and multiplying their scores together. The posts must be selected in chronological order, and each selected post must have higher engagement than all previously selected posts.
    

    """
def max_product(arr):
    """
    Given a sequence of social media post engagement scores, determine the highest potential viral impact by finding posts with progressively increasing engagement levels and multiplying their scores together. The posts must be selected in chronological order, and each selected post must have higher engagement than all previously selected posts.
    

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