Longest Consecutive Sequence

nlogn