
    Given a sequence of credit card transactions ordered by timestamp, determine the highest possible total fraud risk score by multiplying transaction amounts from a subset of transactions where each amount is larger than the previous one. This analysis helps identify potentially fraudulent behavior patterns where criminals test cards with progressively larger purchases.
    

    
def max_product(arr):
    """
    Given a sequence of credit card transactions ordered by timestamp, determine the highest possible total fraud risk score by multiplying transaction amounts from a subset of transactions where each amount is larger than the previous one. This analysis helps identify potentially fraudulent behavior patterns where criminals test cards with progressively larger purchases.
    

    """
def max_product(arr):
    """
    Given a sequence of credit card transactions ordered by timestamp, determine the highest possible total fraud risk score by multiplying transaction amounts from a subset of transactions where each amount is larger than the previous one. This analysis helps identify potentially fraudulent behavior patterns where criminals test cards with progressively larger purchases.
    

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