Update LongestConsecutive_sol2.java