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 traffic light with road instructions directs traffic'. Reverse all words of length '4' in the given sentence.

SOLUTION: a traffic light htiw daor instructions directs traffic

PROBLEM: Sentence: 'a fire hydrant at a city intersection near tall buildings'. Reverse all words of length '2' in the given sentence.

SOLUTION: a fire hydrant ta a city intersection near tall buildings

PROBLEM: Sentence: 'a man standing next to a large pile of oranges'. Reverse all words of length '7' in the given sentence.

SOLUTION:
a man standing next to a large pile of segnaro