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 leans down to take a bite from his sandwich'. Reverse all words of length '5' in the given sentence.

SOLUTION: a man snael down to take a bite from his sandwich

PROBLEM: Sentence: 'a black and white image of a wall with a stop sign on it'. Reverse all words of length '5' in the given sentence.

SOLUTION: a kcalb and etihw egami of a wall with a stop sign on it

PROBLEM: Sentence: 'this is a horse in the middle of the woods'. Reverse all words of length '6' in the given sentence.

SOLUTION:
this is a horse in the elddim of the woods