Amazon interview question

Longest Consecutive Subsequence in Array