Sponsored
Use these hints if you're stuck. Try solving on your own first.
Count the total number of spaces and words. Then use the integer division to determine the numbers of spaces to add between each word and at the end.
Solve with full IDE support and test cases