Persistent Systems Interview Question

1.reverse the words in a string