Google Interview Question

Find longest subsequence of consecutive elements in an array.