AC Longest Consecutive Sequence