uses Max to get the length of the longest word in a string array.