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: 'some players in action on the baseball field'. Reverse all words of length '8' in the given sentence.

SOLUTION: some players in action on the llabesab field

PROBLEM: Sentence: 'the dog looks up at the cat sitting on a stone'. Reverse all words of length '1' in the given sentence.

SOLUTION: the dog looks up at the cat sitting on a stone

PROBLEM: Sentence: 'a man leaning forward as he swings a tennis racket'. Reverse all words of length '2' in the given sentence.

SOLUTION:
a man leaning forward sa eh swings a tennis racket