Pregunta de entrevista de Intel Corporation

Counting words in a string.