Pergunta de entrevista da empresa AT&T

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

Resposta da entrevista

Sigiloso

16 de jan. de 2018

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