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 motorcycles driving on road one making a left hand turn'. Reverse all words of length '7' in the given sentence.

SOLUTION: two motorcycles gnivird on road one making a left hand turn

PROBLEM: Sentence: 'a herd of horses is exercised in the yard led by a man on horseback'. Reverse all words of length '6' in the given sentence.

SOLUTION: a herd of sesroh is exercised in the yard led by a man on horseback

PROBLEM: Sentence: 'a couple of pizzas sitting on top of metal pans'. Reverse all words of length '7' in the given sentence.

SOLUTION:
a couple of pizzas gnittis on top of metal pans