Longest Consecutive Sequence 2nd

unordered_map<int, bool> has two meaning:
1. 'int' in the map means it's in vector num. We don't need another map< > hasValues...
2. 'bool' is true means we have already visited the number.