TASK DEFINITION: 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.
PROBLEM: Sentence: 'a group of men playing on a basketball court next to doors'. Reverse all words of length '3' in the given sentence.

SOLUTION: a group of nem playing on a basketball court next to doors

PROBLEM: Sentence: 'a man taking a photo with his chocolate dessert and a beer'. Reverse all words of length '9' in the given sentence.

SOLUTION: a man taking a photo with his etalocohc dessert and a beer

PROBLEM: Sentence: 'a bathroom has a toilet without a lid'. Reverse all words of length '1' in the given sentence.

SOLUTION:
a bathroom has a toilet without a lid