TASK DEFINITION: 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.
PROBLEM: Sentence: 'a man walking in the shore with a surfboard under his arm'. Reverse all words of length '3' in the given sentence.

SOLUTION: a nam walking in eht shore with a surfboard under sih mra

PROBLEM: Sentence: 'a large long bus on the side of the street'. Reverse all words of length '6' in the given sentence.

SOLUTION: a large long bus on the side of the teerts

PROBLEM: Sentence: 'a headboard attached to a bed mattress in a room'. Reverse all words of length '9' in the given sentence.

SOLUTION:
a draobdaeh attached to a bed mattress in a room