Pergunta de entrevista da empresa American Express

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