
    Write a function that calculates the total high engagement scores (even numbers) occurring during peak activity hours (even-indexed slots) from a list of user event participation metrics, to help identify optimal event scheduling windows for social matching. The engagement scores list contains hourly user activity levels throughout the day, where even indices represent prime social hours. Only consider even-valued engagement scores at even-indexed time slots for the calculation.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total high engagement scores (even numbers) occurring during peak activity hours (even-indexed slots) from a list of user event participation metrics, to help identify optimal event scheduling windows for social matching. The engagement scores list contains hourly user activity levels throughout the day, where even indices represent prime social hours. Only consider even-valued engagement scores at even-indexed time slots for the calculation.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total high engagement scores (even numbers) occurring during peak activity hours (even-indexed slots) from a list of user event participation metrics, to help identify optimal event scheduling windows for social matching. The engagement scores list contains hourly user activity levels throughout the day, where even indices represent prime social hours. Only consider even-valued engagement scores at even-indexed time slots for the calculation.
    

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