Pergunta de entrevista da empresa Adobe

program to count n number of characters of a string in an array