Pergunta de entrevista da empresa Nokia

In Interview Round, I was asked to write a function that returns frequency of each element in a string. And you basically needed to use dictionary.