https://medium.com/codex/leetcode-128-longest-consecutive-sequence-python-programming-solution-01edc2cf4bda