
    Write a function that analyzes a sequence of credit card transactions to find the largest spending gap between any two transactions, helping identify potential fraudulent activity through unusual purchase amount variations. The function should take an array of transaction amounts as input and return the maximum difference between any two transaction values, regardless of their order in the transaction history.
    

    
def max_Abs_Diff(arr):
    """
    Write a function that analyzes a sequence of credit card transactions to find the largest spending gap between any two transactions, helping identify potential fraudulent activity through unusual purchase amount variations. The function should take an array of transaction amounts as input and return the maximum difference between any two transaction values, regardless of their order in the transaction history.
    

    """
def max_Abs_Diff(arr):
    """
    Write a function that analyzes a sequence of credit card transactions to find the largest spending gap between any two transactions, helping identify potential fraudulent activity through unusual purchase amount variations. The function should take an array of transaction amounts as input and return the maximum difference between any two transaction values, regardless of their order in the transaction 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