def society_name(friends):
    code = ''
    friends = sorted(friends)
    for name in friends:
        code += name[0]
    code = code.upper()
    return code

fd4cd0b868c5617da35b4ed28578b692cd16e2fd
<mask token>

def society_name(friends):
    code = ''
    friends = sorted(friends)
    for name in friends:
        code += name[0]
    code = code.upper()
    return code
