Microsoft interview question

Write a program that reverses a word