Pregunta de entrevista de WebMD Health

Count occurrences of character in a given string in java