Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate through the string to split it by spaces.
Count the number of characters of each type (letters, numbers, hyphens, and punctuations).
Solve with full IDE support and test cases