solution for Longest Consecutive Sequence