Longest Consecutive Sequence Problem Solution