TASK DEFINITION: In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.
PROBLEM: Sentence: 'multiple animals in a field while eating some grass'. Reverse all words of length '5' in the given sentence.

SOLUTION: multiple animals in a dleif elihw eating some ssarg

PROBLEM: Sentence: 'a man sitting at a table and looking past the microphone'. Reverse all words of length '4' in the given sentence.

SOLUTION: a man sitting at a table and looking tsap the microphone

PROBLEM: Sentence: 'officers are standing and on horses to form a line across a town center'. Reverse all words of length '8' in the given sentence.

SOLUTION:
sreciffo are gnidnats and on horses to form a line across a town center