Given a string, sort it in decreasing order based on the frequency of the characters. Return the sorted string, allowing multiple correct answers if applicable. Characters with the same frequency should be grouped together.
Click Run to execute sample tests.