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.

Q: Sentence: 'two kids playing soccer with a ball while a referee watches closely'. Reverse all words of length '4' in the given sentence.

A: two sdik playing soccer htiw a llab while a referee watches closely
****
Q: Sentence: 'a woman on a court with a tennis racket'. Reverse all words of length '1' in the given sentence.

A: a woman on a court with a tennis racket
****
Q: Sentence: 'a factory with a large smoke stack next to a train'. Reverse all words of length '1' in the given sentence.

A:
a factory with a large smoke stack next to a train
****