Turing Interview Question

The LeetCode problem: Longest Consecutive Sequence.