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 kitchen has a microwave an oven and a countertop'. Reverse all words of length '2' in the given sentence.
a kitchen has a microwave na oven and a countertop

Sentence: 'a girl is holding a trophy and a tennis racket'. Reverse all words of length '4' in the given sentence.
a lrig is holding a trophy and a tennis racket

Sentence: 'two beds in a room with orange walls and lovely curtains'. Reverse all words of length '3' in the given sentence.

owt beds in a room with orange walls dna lovely curtains