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 holding a device in both of his hand'. Reverse all words of length '7' in the given sentence.

SOLUTION: a man gnidloh a device in both of his hand

PROBLEM: Sentence: 'a slice of pizza on top of a white plate'. Reverse all words of length '3' in the given sentence.

SOLUTION: a slice of pizza on pot of a white plate

PROBLEM: Sentence: 'a charging bear running down a dirt path'. Reverse all words of length '1' in the given sentence.

SOLUTION:
a charging bear running down a dirt path