question you are given a string s check if all characters are unique sample input 1 abcd sample output 1 true sample input 2 aabc sample output 2 false
from collections import Counter
def unique_char_check(S):
    character_count = Counter(S)

    if len(character_count) == len(S):
        return True
    return False

S = input()
print(unique_char_check(S))