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 man laying on a bench and a woman next to him touching his face'. Reverse all words of length '4' in the given sentence.
a man laying on a bench and a woman txen to him touching his ecaf

Sentence: 'a couple of beds pushed together inside of a hospital'. Reverse all words of length '6' in the given sentence.
a elpuoc of beds dehsup together edisni of a hospital

Sentence: 'the train has stopped on the railroad tracks'. Reverse all words of length '6' in the given sentence.

the train has stopped on the railroad skcart