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.

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.
a birthday cake cut in different pieces sitting on a tray at a table

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

Sentence: 'two lawn chairs and a table made out of skis'. Reverse all words of length '3' in the given sentence.

owt lawn chairs dna a table made tuo of skis