problem LONGEST-CONSECUTIVE-SEQUENCE solved with help of map