leetcode:Graph DFS algorithm for Longest Consecutive Sequence problem