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 couple of beds pushed together inside of a hospital'. Reverse all words of length '6' in the given sentence.
[A]: a elpuoc of beds dehsup together edisni of a hospital


[Q]: Sentence: 'a woman is riding a show horse at a competition'. Reverse all words of length '6' in the given sentence.
[A]: a woman is gnidir a show horse at a competition


[Q]: Sentence: 'tomatoes peppers corn and leafy greens on a table'. Reverse all words of length '7' in the given sentence.
[A]:
tomatoes sreppep corn and leafy greens on a table