Turing interview question

The LeetCode problem: Longest Consecutive Sequence.