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: 'he is a serious baseball player and is ready for the pitch'. Reverse all words of length '5' in the given sentence.

SOLUTION: he is a serious baseball player and is ydaer for the hctip

PROBLEM: Sentence: 'dog lying on bottom of enclosed area with people'. Reverse all words of length '5' in the given sentence.

SOLUTION: dog gniyl on bottom of enclosed area with people

PROBLEM: Sentence: 'a donut on a white plate and a cup of cocoa on a glass table'. Reverse all words of length '3' in the given sentence.

SOLUTION:
a donut on a white plate dna a puc of cocoa on a glass table