//不考虑数组为空的情况
    public int getLongest(string[] str, int n)
    {
        // write code here
        if(n==1)
        {
            return (int)str[0].Length;
        }
        else
        {
            if(str[n-1].Length>getLongest(str,n-1))
                return (int)str[n-1].Length;
            else
                return getLongest(str,n-1);
        }
    }