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 plays a game with a wii controller'. Reverse all words of length '1' in the given sentence.
a man plays a game with a wii controller

Sentence: 'reflection of window on mirror in dark bathroom'. Reverse all words of length '10' in the given sentence.
noitcelfer of window on mirror in dark bathroom

Sentence: 'something funny happens on the baseball field in a friendly game'. Reverse all words of length '4' in the given sentence.

something funny happens on the baseball field in a friendly emag