Given a string, you need to determine the minimum number of deletions required to make the string 'good', meaning that no two different characters have the same frequency.
Click Run to execute sample tests.