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 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: 'an old chair with telephone books on it in a room with guitars and a tv'. Reverse all words of length '7' in the given sentence.
an old chair with telephone books on it in a room with sratiug and a tv

Sentence: 'the cupboard is full of glasses and dishes'. Reverse all words of length '3' in the given sentence.

eht cupboard is full of glasses dna dishes