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: 'a baseball player sliding to a base and another trying to catch a ball'. Reverse all words of length '8' in the given sentence.

SOLUTION: a llabesab player sliding to a base and another trying to catch a ball

PROBLEM: Sentence: 'an elephant is standing in the road by the truck'. Reverse all words of length '5' in the given sentence.

SOLUTION: an elephant is standing in the road by the kcurt

PROBLEM: Sentence: 'a herd of cattle walking across a sandy beach'. Reverse all words of length '7' in the given sentence.

SOLUTION:
a herd of cattle gniklaw across a sandy beach