Sponsored
Use these hints if you're stuck. Try solving on your own first.
The number of words in a message is equal to the number of spaces + 1.
Use a hash map to count the total number of words from each sender.
Solve with full IDE support and test cases