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: 'a bird sitting in a tree next to a citrus fruit'. Reverse all words of length '6' in the given sentence.
a bird sitting in a tree next to a surtic fruit

Sentence: 'a room with a green rug and a daybed'. Reverse all words of length '1' in the given sentence.
a room with a green rug and a daybed

Sentence: 'a man is swinging a bat and running as another man holds out his hand behind him'. Reverse all words of length '8' in the given sentence.

a man is gnigniws a bat and running as another man holds out his hand behind him