Sponsored
Use these hints if you're stuck. Try solving on your own first.
Split the string into words, then look at adjacent triples of words.
Solve with full IDE support and test cases