Pregunta de entrevista de PlayStation

Program to count occurrence of a given character in a string.