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.

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

Sentence: 'a woman holds a frisbee close by a second woman that is eying the frisbee with an arm held out while two other players stand waiting in the background'. Reverse all words of length '4' in the given sentence.
a woman holds a frisbee close by a second woman taht is eying the frisbee htiw an arm dleh out while two other players stand waiting in the background

Sentence: 'group of policeman on horse down sidewalk in street'. Reverse all words of length '6' in the given sentence.

group of policeman on horse down sidewalk in teerts