American Express interview question

Given a paragraph represented by a string, reverse the string while updating capitalization and punctuation.