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.

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

Sentence: 'three cows graze on the food that sits just outside their pens'. Reverse all words of length '5' in the given sentence.
eerht cows ezarg on the food that sits just outside rieht pens

Sentence: 'a kitten lies with his head against a teddy bear'. Reverse all words of length '4' in the given sentence.

a kitten seil htiw his daeh against a teddy raeb

