Domanda di colloquio di Turing

What is the longest consecutive subsequence in the given array?