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 person riding a motorcycle on a road next to bales of straw'. Reverse all words of length '4' in the given sentence.

SOLUTION: a person riding a motorcycle on a daor txen to bales of straw

PROBLEM: Sentence: 'a man riding an elephant plays basketball while others watch'. Reverse all words of length '1' in the given sentence.

SOLUTION: a man riding an elephant plays basketball while others watch

PROBLEM: Sentence: 'a person standing in a bed room with a bed and a table'. Reverse all words of length '5' in the given sentence.

SOLUTION:
a person standing in a bed room with a bed and a elbat