Intel Corporation Interview Question

reverse a string of words