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 cat sleeping with is hear resting on a keyboard'. Reverse all words of length '4' in the given sentence.
a cat sleeping htiw is raeh resting on a keyboard

Sentence: 'yachts are all tied up in a marina dock'. Reverse all words of length '3' in the given sentence.
yachts era lla tied up in a marina dock

Sentence: 'a park filled with trees and lots of dirt'. Reverse all words of length '2' in the given sentence.

a park filled with trees and lots fo dirt