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: 'a skateboarder doing a trick on a ramp'. Reverse all words of length '2' in the given sentence.
a skateboarder doing a trick no a ramp

Sentence: 'a surfer exiting the water with board in hand'. Reverse all words of length '3' in the given sentence.

a surfer exiting eht water with board in hand