Abjayon interview question

write program for each character occurrence