[LintCode] Longest Common Prefix