Create longestConsecutiveSequence