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 wearing a black jacket is standing next to a horse'. Reverse all words of length '8' in the given sentence.

SOLUTION: a person wearing a black jacket is gnidnats next to a horse

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: 'many electronic devices on a wooden board'. Reverse all words of length '6' in the given sentence.

SOLUTION:
many electronic devices on a nedoow board