Microsoft Interview Question

On campus Interview Question 1) : Given a string containing a sentence, write a program that outputs the words composing the sentence in reverse order. e.g: "I am cool" -> "I ma looc"