Bayer interview question

Frequency of characters in an array