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 group of sheep graze in a grassy field'. Reverse all words of length '2' in the given sentence.
a group fo sheep graze ni a grassy field

Sentence: 'a group of men playing on a basketball court next to doors'. Reverse all words of length '3' in the given sentence.
a group of nem playing on a basketball court next to doors

Sentence: 'a woman takes a picture with a wii mote'. Reverse all words of length '1' in the given sentence.

a woman takes a picture with a wii mote