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: 'the couple are smiling at each other as they sit on a bench'. Reverse all words of length '4' in the given sentence.

SOLUTION: the couple are smiling at hcae other as yeht sit on a bench

PROBLEM: Sentence: 'a birthday cake cut in different pieces sitting on a tray at a table'. Reverse all words of length '1' in the given sentence.

SOLUTION: a birthday cake cut in different pieces sitting on a tray at a table

PROBLEM: Sentence: 'the kitchen is full of various gourmet ingredients ingredients'. Reverse all words of length '2' in the given sentence.

SOLUTION:
the kitchen si full fo various gourmet ingredients ingredients