Change "Longest Consecutive Sequence" to meet O(n) requirment.