Intel Corporation interview question

reverse a string of words