Solution for https://oj.leetcode.com/problems/longest-consecutive-sequence/