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 watches two giraffes eating from a box'. Reverse all words of length '4' in the given sentence.

SOLUTION: a man watches two giraffes eating morf a box

PROBLEM: Sentence: 'a child sits on a chair next to a bear'. Reverse all words of length '5' in the given sentence.

SOLUTION: a dlihc sits on a riahc next to a bear

PROBLEM: Sentence: 'a number of benches with a view of a body of water'. Reverse all words of length '4' in the given sentence.

SOLUTION:
a number of benches htiw a weiv of a ydob of water