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 standing on top of a dirt field next to a frisbee'. Reverse all words of length '4' in the given sentence.
[EX A]: a dog standing on top of a trid field txen to a frisbee

[EX Q]: Sentence: 'an old chair with telephone books on it in a room with guitars and a tv'. Reverse all words of length '7' in the given sentence.
[EX A]: an old chair with telephone books on it in a room with sratiug and a tv

[EX Q]: Sentence: 'the two chefs are preparing dinner for the restaurant'. Reverse all words of length '3' in the given sentence.
[EX A]:
eht owt chefs era preparing dinner rof eht restaurant