Pregunta de entrevista de Amazon

Find longest consecutive subsequence in an Array