Pergunta de entrevista da empresa Amazon

Find longest consecutive subsequence in an Array