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 tossing a ball to another player'. Reverse all words of length '2' in the given sentence.

SOLUTION: a baseball player tossing a ball ot another player

PROBLEM: Sentence: 'a row of parked motorcycles sitting next to a white double decker bus'. Reverse all words of length '7' in the given sentence.

SOLUTION: a row of parked motorcycles gnittis next to a white double decker bus

PROBLEM: Sentence: 'a tennis player serves a ball during a tennis game'. Reverse all words of length '1' in the given sentence.

SOLUTION:
a tennis player serves a ball during a tennis game