
    Write a function that calculates the total compatibility score for a user's friend recommendations by summing up strong connection matches (represented by even numbers) that occur at direct mutual connection levels (even positions) in the interaction score list. This scoring system helps prioritize recommendations where both the connection degree and compatibility strength align optimally.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total compatibility score for a user's friend recommendations by summing up strong connection matches (represented by even numbers) that occur at direct mutual connection levels (even positions) in the interaction score list. This scoring system helps prioritize recommendations where both the connection degree and compatibility strength align optimally.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total compatibility score for a user's friend recommendations by summing up strong connection matches (represented by even numbers) that occur at direct mutual connection levels (even positions) in the interaction score list. This scoring system helps prioritize recommendations where both the connection degree and compatibility strength align optimally.
    

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