[LintCode] Longest Words