Write a function to find the longest common prefix string amongst an array of strings.一组字符串的最长公共的前缀。代码: 参考代码