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 gentleman and child in a vintage picture with a horse'. Reverse all words of length '4' in the given sentence.
[A]: a gentleman and child in a vintage picture htiw a horse


[Q]: Sentence: 'a woman checks upon a baby in a bed'. Reverse all words of length '1' in the given sentence.
[A]: a woman checks upon a baby in a bed


[Q]: Sentence: 'a goat with red painted horns on its head'. Reverse all words of length '4' in the given sentence.
[A]:
a taog htiw red painted horns on its daeh