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 person is on the court and playing tennis'. Reverse all words of length '3' in the given sentence.
a person is on eht court dna playing tennis

Sentence: 'a living room filled with furniture and windows'. Reverse all words of length '1' in the given sentence.
a living room filled with furniture and windows

Sentence: 'a bedroom with a loveseat and lots of pillows'. Reverse all words of length '4' in the given sentence.

a bedroom htiw a loveseat and stol of pillows