Given a string s consisting of lowercase English letters, sort it in decreasing order of character frequency.
If two characters have the same frequency, sort them in alphabetical order.
Return the resulting sorted string.
s = "tree""eert"s = "cccaaa""aaaccc"s = "aab""aab"1 <= s.length <= 5 * 10^4s consists of lowercase English letters onlyRun your code to see results
Use Cmd+Enter to run