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.

Example Input: Sentence: 'an oldfashioned safe and roll top desk in a green room'. Reverse all words of length '3' in the given sentence.
Example Output: an oldfashioned safe dna roll pot desk in a green room

Example Input: Sentence: 'two cats facing left one on laptop the other on the table'. Reverse all words of length '4' in the given sentence.
Example Output: two stac facing tfel one on laptop the other on the table

Example Input: Sentence: 'a couple of animals that are beside a fence'. Reverse all words of length '1' in the given sentence.
Example Output:
a couple of animals that are beside a fence