American Express Interview Question

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