AT&T Interview Question

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

Interview Answer

Anonymous

Jan 16, 2018

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