code: def frequencySort(self, s: str) -> str:
      freq = Counter(s)
      output = ""
  
      for char, times in freq.most_common():
          output += char * times
      return output
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.frequencySort(s) and returns: output