Bayer Interview Question

Frequency of characters in an array