Pergunta de entrevista da empresa Credex Technology

Count character occurrences in a line.