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 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 cat attentively watching a graphic on a television screen'. Reverse all words of length '7' in the given sentence.

SOLUTION: a cat attentively watching a cihparg on a television screen

PROBLEM: Sentence: 'a kitchen with an oven stove sink and refrigerator'. Reverse all words of length '2' in the given sentence.

SOLUTION:
a kitchen with na oven stove sink and refrigerator