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: 'a gray tiger cat sitting on top of a chair'. Reverse all words of length '3' in the given sentence.
Example Output: a gray tiger tac sitting on pot of a chair

Example Input: Sentence: 'a bathroom with two doors and both of them are ajar'. Reverse all words of length '4' in the given sentence.
Example Output: a bathroom htiw two doors and htob of meht are raja

Example Input: Sentence: 'a chef cooking food on a grill and people at the smorgasbord'. Reverse all words of length '6' in the given sentence.
Example Output:
a chef cooking food on a grill and elpoep at the smorgasbord