Domanda di colloquio di PlayStation

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