Coding Challenge · INTERMEDIATE
Given a string representing a sentence, reverse the order of words in the sentence. Words are defined as sequences of non-space characters. The sentence may contain leading or trailing spaces, and multiple spaces between words. Your task is to return the sentence with words in reverse order, but each word itself should…