Microsoft Interview Question

reverse the word in string