Microsoft interview question

reverse word in a string