s
.s
and update the count dictionary.order
.
a. Append the character to the result string as many times as its count in the dictionary.
b. Set the count of that character to 0 in the dictionary to indicate it's been fully added to the result.order
, append them to the result string as many times as their count.