问题描述:
Write a python function to minimize the length of the string by removing occurrence of only one character.

测试用例:
['assert minimum_Length("mnm") == 1', 'assert minimum_Length("abcda") == 3', 'assert minimum_Length("abcb") == 2']

生成的代码:
def minimum_Length(s):
    from collections import Counter
    char_count = Counter(s)
    min_freq = min(char_count.values())
    return len(s) - min_freq

# Test cases
assert minimum_Length("mnm") == 1
assert minimum_Length("abcda") == 3
assert minimum_Length("abcb") == 2