Sponsored
Use these hints if you're stuck. Try solving on your own first.
There are only words.length prefix strings.
Create all of them and see if s is one of them.
Solve with full IDE support and test cases