Amazon Interview Question

Longest Consecutive Subsequence in Array