Microsoft interview question

reverse the word in string