Salesforce Interview Question

write program to reverse each string in a sentence