Capco interview question

Program to reverse each word in a given sentence