Amazon interview question

Find longest consecutive subsequence in an Array