Wipro interview question

count frequency of characters in string , java oops