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.

Example Input: Sentence: 'a man on a surfboard riding a wave in the ocean'. Reverse all words of length '6' in the given sentence.
Example Output: a man on a surfboard gnidir a wave in the ocean

Example Input: Sentence: 'a young man is sitting on the side of a bus eating a hot dog'. Reverse all words of length '3' in the given sentence.
Example Output: a young nam is sitting on eht side of a sub eating a toh god

Example Input: Sentence: 'a cat is laying in front of a bench on a patio'. Reverse all words of length '6' in the given sentence.
Example Output:
a cat is gniyal in front of a bench on a patio