Coding Challenge · BEGINNER
Given a string containing a sentence, write a function that reverses the order of the words in the sentence. Words are defined as sequences of non-space characters separated by spaces. The function should return the reversed sentence with the same spacing pattern as the input.