
    Write a function that calculates the total risk score of social media posts that meet moderation thresholds (represented by even values) and are marked for priority review (at even-numbered positions) in the moderation queue. The risk scores are represented as integers in a list where even-indexed positions indicate posts flagged for immediate review, and even values represent posts that exceed safety thresholds.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total risk score of social media posts that meet moderation thresholds (represented by even values) and are marked for priority review (at even-numbered positions) in the moderation queue. The risk scores are represented as integers in a list where even-indexed positions indicate posts flagged for immediate review, and even values represent posts that exceed safety thresholds.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total risk score of social media posts that meet moderation thresholds (represented by even values) and are marked for priority review (at even-numbered positions) in the moderation queue. The risk scores are represented as integers in a list where even-indexed positions indicate posts flagged for immediate review, and even values represent posts that exceed safety thresholds.
    

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