
    Design a function for an AI content moderation system that calculates the total risk score of posts requiring review in a batch. Given n posts with descending risk levels, where the highest risk post has a score of n and subsequent posts decrease in risk by 2 points each, compute the sum of all risk scores until reaching posts with zero or negative risk. The risk scoring system helps prioritize content review, with higher scores indicating content that requires immediate attention. The function should process posts in order of decreasing risk levels (n, n-2, n-4, etc.) and stop when it encounters posts that fall below the minimum risk threshold of 0.
    

    
def sum_series(n):
    """
    Design a function for an AI content moderation system that calculates the total risk score of posts requiring review in a batch. Given n posts with descending risk levels, where the highest risk post has a score of n and subsequent posts decrease in risk by 2 points each, compute the sum of all risk scores until reaching posts with zero or negative risk. The risk scoring system helps prioritize content review, with higher scores indicating content that requires immediate attention. The function should process posts in order of decreasing risk levels (n, n-2, n-4, etc.) and stop when it encounters posts that fall below the minimum risk threshold of 0.
    

    """
def sum_series(n):
    """
    Design a function for an AI content moderation system that calculates the total risk score of posts requiring review in a batch. Given n posts with descending risk levels, where the highest risk post has a score of n and subsequent posts decrease in risk by 2 points each, compute the sum of all risk scores until reaching posts with zero or negative risk. The risk scoring system helps prioritize content review, with higher scores indicating content that requires immediate attention. The function should process posts in order of decreasing risk levels (n, n-2, n-4, etc.) and stop when it encounters posts that fall below the minimum risk threshold of 0.
    

    """
    if n < 1:
        return 0
    else:
        return n + sum_series(n - 2)