
    Design a function that analyzes a customer's historical transaction amounts to identify the largest spending gap between any two transactions, as unusually large differences between transaction amounts could signal potential fraudulent activity. The function should take an array of transaction amounts as input and return the maximum difference found between any pair of transactions in the customer's history.
    

    
def max_Abs_Diff(arr):
    """
    Design a function that analyzes a customer's historical transaction amounts to identify the largest spending gap between any two transactions, as unusually large differences between transaction amounts could signal potential fraudulent activity. The function should take an array of transaction amounts as input and return the maximum difference found between any pair of transactions in the customer's history.
    

    """
def max_Abs_Diff(arr):
    """
    Design a function that analyzes a customer's historical transaction amounts to identify the largest spending gap between any two transactions, as unusually large differences between transaction amounts could signal potential fraudulent activity. The function should take an array of transaction amounts as input and return the maximum difference found between any pair of transactions in the customer's history.
    

    """
    n = len(arr)
    minEle = arr[0]
    maxEle = arr[0]
    for i in range(1, n):
        minEle = min(minEle, arr[i])
        maxEle = max(maxEle, arr[i])
    return maxEle - minEle