Question: 
Write a python function to minimize the length of the string by removing occurrence of only one character.


Model's Code:
def minimum_Length(s):
    from collections import Counter
    count = Counter(s)
    return len(s) - max(count.values())



Sample Correct Code:
def minimum_Length(s) : 
    maxOcc = 0
    n = len(s) 
    arr = [0]*26
    for i in range(n) : 
        arr[ord(s[i]) -ord('a')] += 1
    for i in range(26) : 
        if arr[i] > maxOcc : 
            maxOcc = arr[i] 
    return n - maxOcc 


Asserts:
assert minimum_Length("mnm") == 1
assert minimum_Length("abcda") == 3
assert minimum_Length("abcb") == 2


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 350 of 974: 254/350 (72.57142857142857%): success