The Longest Common Prefix Problem