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 person on a surfboard riding a wave in the water'. Reverse all words of length '5' in the given sentence.

SOLUTION: a person on a surfboard riding a wave in the retaw

PROBLEM: Sentence: 'a yellow sign on a pole next to a street'. Reverse all words of length '6' in the given sentence.

SOLUTION:
a wolley sign on a pole next to a teerts