Domanda di colloquio di Amazon

Find longest consecutive subsequence in an Array