Salesforce interview question

write program to reverse each string in a sentence