def duplicate_encode(word):
    word = word.lower()
    return "".join(['(' if word.count(a)==1 else ')' for a in word])
c15d11167a7e958188c25e1de3566e88848ed5d8
<mask token>

def duplicate_encode(word):
    word = word.lower()
    return ''.join([('(' if word.count(a) == 1 else ')') for a in word])

def duplicate_encode(word):
    word = word.lower()
    return "".join(['(' if word.count(a)==1 else ')' for a in word])