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 laying on a bench and a woman next to him touching his face'. Reverse all words of length '4' in the given sentence.

SOLUTION: a man laying on a bench and a woman txen to him touching his ecaf

PROBLEM: Sentence: 'pictures a candle a single flower and a stuffed bear on a table'. Reverse all words of length '6' in the given sentence.

SOLUTION: pictures a eldnac a elgnis rewolf and a stuffed bear on a table

PROBLEM: Sentence: 'a cooked pizza sitting on a pan beside other food and drinks'. Reverse all words of length '6' in the given sentence.

SOLUTION:
a dekooc pizza sitting on a pan ediseb other food and sknird