Task: Program Execution
Input (English): Sentence: 'a man is riding a horse by a river'. Reverse all words of length '3' in the given sentence.
Output (English): a nam is riding a horse by a river