Avatar ·

The most common symbol

📁 example

I want to make a program that takes a word and outputs the symbol that appears most often in that word. I can't figure out how to do it. Please help. For example, we have the word: priority. We should output that the most common symbols are i and t. It is not necessary to output the count, only the symbols.