Pergunta de entrevista da empresa Indeed

Find longest run (i.e 1 2 3 4 ) in an array.