Pergunta de entrevista da empresa PlayStation

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