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: 'two cats facing left one on laptop the other on the table'. Reverse all words of length '4' in the given sentence.

SOLUTION: two stac facing tfel one on laptop the other on the table

PROBLEM: Sentence: 'a bride and groom holding a knife to a three tier wedding cake'. Reverse all words of length '1' in the given sentence.

SOLUTION: a bride and groom holding a knife to a three tier wedding cake

PROBLEM: Sentence: 'a desk in a hotel room next to a row of windows'. Reverse all words of length '2' in the given sentence.

SOLUTION:
a desk ni a hotel room next ot a row fo windows