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.

[Q]: Sentence: 'a beach chair and sandals in the sand'. Reverse all words of length '2' in the given sentence.
[A]: a beach chair and sandals ni the sand


[Q]: Sentence: 'a cat sleeping with is hear resting on a keyboard'. Reverse all words of length '4' in the given sentence.
[A]: a cat sleeping htiw is raeh resting on a keyboard


[Q]: Sentence: 'he is a serious baseball player and is ready for the pitch'. Reverse all words of length '5' in the given sentence.
[A]:
he is a serious baseball player and is ydaer for the hctip