Sponsored
Use these hints if you're stuck. Try solving on your own first.
Put the words into a trie, and manage a set of pointers within that trie.
Solve with full IDE support and test cases