
    Write a function to analyze a customer's transaction history and determine the largest spending volatility by finding the maximum difference between any two transactions in their account history, which will help assess their financial stability for loan approval. The function should take an array of transaction amounts as input and return the maximum difference found between any two transactions.
    

    
def max_Abs_Diff(arr):
    """
    Write a function to analyze a customer's transaction history and determine the largest spending volatility by finding the maximum difference between any two transactions in their account history, which will help assess their financial stability for loan approval. The function should take an array of transaction amounts as input and return the maximum difference found between any two transactions.
    

    """
def max_Abs_Diff(arr):
    """
    Write a function to analyze a customer's transaction history and determine the largest spending volatility by finding the maximum difference between any two transactions in their account history, which will help assess their financial stability for loan approval. The function should take an array of transaction amounts as input and return the maximum difference found between any two transactions.
    

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