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.
--------
Question: Sentence: 'the firetruck carried the firefighters to the fire to put the blaze out'. Reverse all words of length '3' in the given sentence.

Answer: eht firetruck carried eht firefighters to eht fire to tup eht blaze tuo


Question: Sentence: 'a birthday cake cut in different pieces sitting on a tray at a table'. Reverse all words of length '1' in the given sentence.

Answer: a birthday cake cut in different pieces sitting on a tray at a table


Question: Sentence: 'a person on a tennis court with a racket in hand'. Reverse all words of length '4' in the given sentence.

Answer:
a person on a tennis court htiw a racket in dnah