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.

Q: Sentence: 'this cat is sitting on a porch near a tire'. Reverse all words of length '7' in the given sentence.

A: this cat is gnittis on a porch near a tire
****
Q: Sentence: 'a couch and table sits outside with fake sheep'. Reverse all words of length '1' in the given sentence.

A: a couch and table sits outside with fake sheep
****
Q: Sentence: 'there is a dog that has a red hat on'. Reverse all words of length '3' in the given sentence.

A:
there is a god that sah a der tah on
****