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 train is in a depot at the platform entry'. Reverse all words of length '2' in the given sentence.

SOLUTION: a train si ni a depot ta the platform entry

PROBLEM: Sentence: 'a couple of giraffes standing in front of a metal fence'. Reverse all words of length '8' in the given sentence.

SOLUTION: a couple of seffarig gnidnats in front of a metal fence

PROBLEM: Sentence: 'a room with a blue chair green chair and wooden chair'. Reverse all words of length '3' in the given sentence.

SOLUTION:
a room with a blue chair green chair dna wooden chair