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: 'two hot dogs surrounded with bacon and cheese'. Reverse all words of length '6' in the given sentence.

SOLUTION: two hot dogs surrounded with bacon and eseehc

PROBLEM: Sentence: 'a man watches two giraffes eating from a box'. Reverse all words of length '4' in the given sentence.

SOLUTION: a man watches two giraffes eating morf a box

PROBLEM: Sentence: 'a closeup of a worn teddy bear in front of a tree trunk'. Reverse all words of length '4' in the given sentence.

SOLUTION:
a closeup of a nrow teddy raeb in front of a eert trunk