Question d’entretien chez Amazon

Find longest consecutive subsequence in an Array