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 woman is up to bat at a softball game'. Reverse all words of length '2' in the given sentence.
a woman si pu ot bat ta a softball game

Sentence: 'a woman taking her surf board into the ocean'. Reverse all words of length '3' in the given sentence.
a woman taking reh surf board into eht ocean

Sentence: 'a woman reaching into a toilet looking for snacks while holding a trash bag'. Reverse all words of length '7' in the given sentence.

a woman reaching into a toilet gnikool for snacks while gnidloh a trash bag

