Task: Program Execution
Input (English): Sentence: 'a man rides a horse and brandishes a whip at his companions'. Reverse all words of length '4' in the given sentence.
Output (English): a man rides a horse and brandishes a pihw at his companions