
    Given a customer's sequential transaction amounts, find the highest potential fraud risk score by multiplying transaction amounts that form an increasing pattern (where each amount is larger than the previous). This pattern detection helps identify potential fraudulent behavior where criminals test accounts with small purchases before making larger unauthorized transactions.
    

    
def max_product(arr):
    """
    Given a customer's sequential transaction amounts, find the highest potential fraud risk score by multiplying transaction amounts that form an increasing pattern (where each amount is larger than the previous). This pattern detection helps identify potential fraudulent behavior where criminals test accounts with small purchases before making larger unauthorized transactions.
    

    """
def max_product(arr):
    """
    Given a customer's sequential transaction amounts, find the highest potential fraud risk score by multiplying transaction amounts that form an increasing pattern (where each amount is larger than the previous). This pattern detection helps identify potential fraudulent behavior where criminals test accounts with small purchases before making larger unauthorized transactions.
    

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