Pregunta de entrevista de AT&T

How would you reverse the words in a string, without reversing the characters?

Respuesta de la entrevista

Anónimo

16 ene 2018

Use split function to separate string into array of strings split by white spaces, then traverse the array in reverse order