Pregunta de entrevista de IfOnly

Find the longest grid in a matrix?