Amazon Interview Question - Longest Consecutive Sequence - LeetCode 128