
    Write a function that calculates the total value of suspicious transactions by summing up even-valued transaction amounts that occur at even-indexed positions in a customer's transaction history. These transactions represent potential fraud patterns where both the timing (position) and amount (even values) align with known suspicious behavior patterns.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total value of suspicious transactions by summing up even-valued transaction amounts that occur at even-indexed positions in a customer's transaction history. These transactions represent potential fraud patterns where both the timing (position) and amount (even values) align with known suspicious behavior patterns.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total value of suspicious transactions by summing up even-valued transaction amounts that occur at even-indexed positions in a customer's transaction history. These transactions represent potential fraud patterns where both the timing (position) and amount (even values) align with known suspicious behavior patterns.
    

    """
    i = 0
    sum = 0
    for i in range(0, len(arr), 2):
        if arr[i] % 2 == 0:
            sum += arr[i]
    return sum