
    Given a sequence of hourly bus occupancy counts, find the highest possible product of passenger numbers that forms an increasing pattern throughout the day to identify peak capacity strain. The occupancy counts are recorded at different checkpoints, and the pattern must show consistently increasing passenger numbers between the selected checkpoints to be considered valid.
    

    
def max_product(arr):
    """
    Given a sequence of hourly bus occupancy counts, find the highest possible product of passenger numbers that forms an increasing pattern throughout the day to identify peak capacity strain. The occupancy counts are recorded at different checkpoints, and the pattern must show consistently increasing passenger numbers between the selected checkpoints to be considered valid.
    

    """
def max_product(arr):
    """
    Given a sequence of hourly bus occupancy counts, find the highest possible product of passenger numbers that forms an increasing pattern throughout the day to identify peak capacity strain. The occupancy counts are recorded at different checkpoints, and the pattern must show consistently increasing passenger numbers between the selected checkpoints to be considered valid.
    

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