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 tennis player is swinging at a tennis ball'. Reverse all words of length '2' in the given sentence.

SOLUTION: a tennis player si swinging ta a tennis ball

PROBLEM: Sentence: 'a bedroom with clothes scattered everywhere and an unmade bed'. Reverse all words of length '7' in the given sentence.

SOLUTION: a moordeb with sehtolc scattered everywhere and an unmade bed

PROBLEM: Sentence: 'a man with white clown paint is on a bicycle'. Reverse all words of length '4' in the given sentence.

SOLUTION:
a man htiw white clown paint is on a bicycle