Tech Mahindra Interview Question

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