
    Write a function to calculate the total passenger capacity needed for high-volume bus stops (represented by even numbers) that occur at peak-hour positions (even indices) along a bus route, where the input is a list of hourly passenger counts at sequential stops. This calculation will help optimize resource allocation for stops that experience both timing-based and capacity-based pressure points.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function to calculate the total passenger capacity needed for high-volume bus stops (represented by even numbers) that occur at peak-hour positions (even indices) along a bus route, where the input is a list of hourly passenger counts at sequential stops. This calculation will help optimize resource allocation for stops that experience both timing-based and capacity-based pressure points.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function to calculate the total passenger capacity needed for high-volume bus stops (represented by even numbers) that occur at peak-hour positions (even indices) along a bus route, where the input is a list of hourly passenger counts at sequential stops. This calculation will help optimize resource allocation for stops that experience both timing-based and capacity-based pressure points.
    

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