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.

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

[EX Q]: Sentence: 'a train platform at a train stop with brick style flooring'. Reverse all words of length '2' in the given sentence.
[EX A]: a train platform ta a train stop with brick style flooring

[EX Q]: Sentence: 'a train going down the track while someone waits to get on the train'. Reverse all words of length '7' in the given sentence.
[EX A]:
a train going down the track while enoemos waits to get on the train