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 red pair of scissors on top of an envelope'. Reverse all words of length '2' in the given sentence.
a red pair fo scissors no top fo na envelope

Sentence: 'two kids playing soccer with a ball while a referee watches closely'. Reverse all words of length '4' in the given sentence.
two sdik playing soccer htiw a llab while a referee watches closely

Sentence: 'an old time steam engine with a group of people next to it and an old train station'. Reverse all words of length '2' in the given sentence.

na old time steam engine with a group fo people next ot ti and na old train station