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 cat has is sticking its head in the toilet'. Reverse all words of length '8' in the given sentence.

SOLUTION: a cat has is gnikcits its head in the toilet

PROBLEM: Sentence: 'a heard of animals in a field approaching the water'. Reverse all words of length '11' in the given sentence.

SOLUTION: a heard of animals in a field gnihcaorppa the water

PROBLEM: Sentence: 'a man sitting at a restaurant table with a bowl of soup in front of him'. Reverse all words of length '5' in the given sentence.

SOLUTION:
a man sitting at a restaurant elbat with a bowl of soup in tnorf of him