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.
One example is below.
Q: Sentence: 'as a guy jumps over the snow with his snowboard people riding on the lift behind him look on'. Reverse all words of length '6' in the given sentence.
A: as a guy jumps over the snow with his snowboard elpoep gnidir on the lift dniheb him look on
Rationale: Words 'people', 'riding', 'behind' are of length 6. Reversing these words results in 'elpoep', 'gnidir', and 'dniheb' respectively. So this is a correct answer.
Q: Sentence: 'a person standing and a person looking down'. Reverse all words of length '8' in the given sentence.
A:
a person gnidnats and a person looking down