The function is given a string. Sort the characters and return a new string. Sorting conditions:
frequencySort("tree") ➞ "eert" frequencySort("cccaaa") ➞ "aaaccc" frequencySort("Aabb") ➞ "bbAa"
N/A