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 baseball player leaping into the air to catch a baseball'. Reverse all words of length '3' in the given sentence.

SOLUTION: a baseball player leaping into eht ria to catch a baseball

PROBLEM: Sentence: 'a bathroom covered with beige tiles and a fancy sink'. Reverse all words of length '7' in the given sentence.

SOLUTION:
a bathroom derevoc with beige tiles and a fancy sink