1858: Longest Word With All Prefixes

Problem Statement