
    Given a user's interaction hash string representing their engagement patterns on a social network, develop a function that generates a single-character category identifier by summing the ASCII values of all characters in the hash and applying modulo 26 to determine content recommendation buckets. The resulting character (A-Z) will be used to group users with similar interaction patterns for targeted content recommendations.
    

    
def get_Char(strr):
    """
    Given a user's interaction hash string representing their engagement patterns on a social network, develop a function that generates a single-character category identifier by summing the ASCII values of all characters in the hash and applying modulo 26 to determine content recommendation buckets. The resulting character (A-Z) will be used to group users with similar interaction patterns for targeted content recommendations.
    

    """
def get_Char(strr):
    """
    Given a user's interaction hash string representing their engagement patterns on a social network, develop a function that generates a single-character category identifier by summing the ASCII values of all characters in the hash and applying modulo 26 to determine content recommendation buckets. The resulting character (A-Z) will be used to group users with similar interaction patterns for targeted content recommendations.
    

    """
    summ = 0
    for i in range(len(strr)):
        summ += ord(strr[i]) - ord('a') + 1
    if summ % 26 == 0:
        return ord('z')
    else:
        summ = summ % 26
        return chr(ord('a') + summ - 1)