Sony interview question

Given a string "aabbccc" write a program that displays how many times each character appears