takeUforward
longest-string-with-all-prefixes - Tutorial