Google interview question

Find longest subsequence of consecutive elements in an array.