Longest Consecutive Sequence

Given an unsorted array of integers, find the length of the longest consecutive elements sequence.