Pregunta de entrevista de PTC

Reverse words in string without using stack?