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: 'an elephant is in a large field standing in the grass'. Reverse all words of length '1' in the given sentence.
[A]: an elephant is in a large field standing in the grass


[Q]: Sentence: 'a person is on the court and playing tennis'. Reverse all words of length '3' in the given sentence.
[A]: a person is on eht court dna playing tennis


[Q]: Sentence: 'a train caught in motion riding on a track over a city area'. Reverse all words of length '2' in the given sentence.
[A]:
a train caught ni motion riding no a track over a city area