Question d’entretien chez Verily

Find longest consecutive list from an array input.