Find the longest word in a string.
Treat each maximal sequence of non-whitespace characters as a word. Return the longest word exactly as it appears, including punctuation. If multiple words share the maximum length, return the last one. The input contains at least one non-whitespace character.
longest_word(s) receives a string s and returns a string.
def longest_word(s):