Longest String With All Prefixes Leetcode Problems