`

Go to Piazza and answer the question.
Consider this method:
public static String largest(String[] values, Comparator<String> comp)
{
String result = null;
for (int i = 0; i < values.length - 1; i++)
if (i == 0 || comp.compare(result, values[i]) < 0)
result = values[i];
return result;
}
What is the result of this call?
String[] words = { "Mary", "had", "a", "little", "zebra" };
String largestWord = largest(words, (s, t) -> Math.max(s.length(), t.length()));
"Mary""little""zebra"With the same largest method, what is the result of
String result = largest(new String[] { "Mary" }, null);
NullPointerExceptionArrayIndexOutOfBoundsException"Mary"