Longest String With All Prefixes Leetcode Problems Easy