Pergunta de entrevista da empresa Tech Mahindra

write a program to count the occurrence of each character in a string