
    Given a sequence of student quiz scores throughout the semester, determine the highest potential performance indicator by multiplying the scores from any subsequence of quizzes where the student showed consistent improvement (each score being higher than the previous one). The resulting product will help identify the student's best period of sustained academic progress.
    

    
def max_product(arr):
    """
    Given a sequence of student quiz scores throughout the semester, determine the highest potential performance indicator by multiplying the scores from any subsequence of quizzes where the student showed consistent improvement (each score being higher than the previous one). The resulting product will help identify the student's best period of sustained academic progress.
    

    """
def max_product(arr):
    """
    Given a sequence of student quiz scores throughout the semester, determine the highest potential performance indicator by multiplying the scores from any subsequence of quizzes where the student showed consistent improvement (each score being higher than the previous one). The resulting product will help identify the student's best period of sustained academic progress.
    

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