Pregunta de entrevista de Amazon

Longest Consecutive Subsequence in Array