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 group of people eating a cake on a table'. Reverse all words of length '6' in the given sentence.

SOLUTION: a group of elpoep gnitae a cake on a table

PROBLEM: Sentence: 'a beach chair and sandals in the sand'. Reverse all words of length '2' in the given sentence.

SOLUTION: a beach chair and sandals ni the sand

PROBLEM: Sentence: 'a boat floating on a river next to a city'. Reverse all words of length '4' in the given sentence.

SOLUTION:
a taob floating on a river txen to a ytic