Create Longest_Consecutive_Sequence

the scan function can't use recursion for the LargeJudge