Pregunta de entrevista de Publicis Sapient

Java program to number of character occures in string?