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 giraffe standing next to a leafy tree'. Reverse all words of length '1' in the given sentence.

SOLUTION: a giraffe standing next to a leafy tree

PROBLEM: Sentence: 'two baseball players with long hair and beards are posing with a smile'. Reverse all words of length '1' in the given sentence.

SOLUTION: two baseball players with long hair and beards are posing with a smile

PROBLEM: Sentence: 'a woman plays with a phone while sitting down'. Reverse all words of length '5' in the given sentence.

SOLUTION:
a namow syalp with a enohp elihw sitting down