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 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 mix of vegetables in a pot with a spoon'. Reverse all words of length '4' in the given sentence.

SOLUTION: a mix of vegetables in a pot htiw a spoon

PROBLEM: Sentence: 'a basket of doughnuts with sugar sprinkled on it on a table'. Reverse all words of length '5' in the given sentence.

SOLUTION:
a basket of doughnuts with ragus sprinkled on it on a elbat