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 birthday cake cut in different pieces sitting on a tray at a table'. Reverse all words of length '1' in the given sentence.

SOLUTION: a birthday cake cut in different pieces sitting on a tray at a table

PROBLEM: Sentence: 'a sliced pizza with vegetables in a pizza box'. Reverse all words of length '10' in the given sentence.

SOLUTION: a sliced pizza with selbategev in a pizza box

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