add the solution to find the longest consecutive