A sentence is a list of words separated by a single space with no leading or trailing spaces. You are given an array of sentences, and the task is to determine the maximum number of words contained in a single sentence.
Click Run to execute sample tests.