a string s call good different character s frequencyGiven string s return minimum number character need delete s goodthe frequency character string number time appear stre for example stre aab frequency 2 frequency b 1 Example 1input s aaboutput 0explanation s goodexample 2input s aaabbbccoutput 2explanation you delete b result good string aaabccanother way delete b c result good string aaabbcexample 3input s ceabaacboutput 2explanation you delete cs result good string eabaabnote care character string end ie frequency 0 ignore Constraints1 slength 105s contain lowercase english letter