leetcode Longest Common Prefix Issue solution