LeetCode-451. Sort Characters By Frequency [C++][Java]题目描述解题思路
Given a strings, sort it indecreasing orderbased on thefrequencyof the characters. Thefrequencyof a character is the number of times it appears in the string. Returnthe sorted string. If there are multiple answers, returnany of them.