Aristocrat Interview Question

Java program to find occurrences of each character in string