Problem 1858 · Medium
Find the longest word whose every nonempty prefix is also present.
Open the interactive visualisation