Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use the maximum length of words to determine the length of the returned answer. However, don't forget to remove trailing spaces.
Solve with full IDE support and test cases