Your question is Sort Characters by Frequency. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a string s, return a new string where characters are grouped and ordered by decreasing frequency. If two characters have the same frequency, any relative order between them is valid.
1 <= len(s) <= 5 * 10^5s may contain letters, digits, and symbols