Pregunta de entrevista de Persistent Systems

Calculate spaces and alphabates in the given string.