I need a piece of code to find the minimum occurrences of a letter in a given string.
I cannot use the min() function. I already have a function to find the max occurrences of a letter. What modifications would I need to make to the code?
def getMaxOccuringChar(str):
    ASCII_SIZE = 256
    count = [0] * ASCII_SIZE
    max = -1
    c = ''
    for i in str:
        count[ord(i)] += 1;
    for i in str:
        if max < count[ord(i)]:
            max = count[ord(i)]
            c = i
    return c
print(getMaxOccuringChar(""))
 
     
    