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 man leaning forward as he swings a tennis racket'. Reverse all words of length '2' in the given sentence.

SOLUTION: a man leaning forward sa eh swings a tennis racket

PROBLEM: Sentence: 'the mother giraffe is tending to her new baby'. Reverse all words of length '7' in the given sentence.

SOLUTION:
the mother effarig is gnidnet to her new baby