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.

[EX Q]: Sentence: 'a dog curled up sleeping on a bed with pillows'. Reverse all words of length '6' in the given sentence.
[EX A]: a dog delruc up sleeping on a bed with pillows

[EX Q]: Sentence: 'a sink and a bathtub and shower with a mirror above the sink'. Reverse all words of length '4' in the given sentence.
[EX A]: a knis and a bathtub and shower htiw a mirror above the knis

[EX Q]: Sentence: 'pedestrians and cars move along between city buildings'. Reverse all words of length '3' in the given sentence.
[EX A]:
pedestrians dna cars move along between city buildings