Amdocs Interview Question

code to find frequency of each character?