Longest Consecutive Sequence
Given an integer array `nums`, return the length of the longest sequence of values that increases by exactly `1` from one element to the next.
Given an integer array `nums`, return the length of the longest sequence of values that increases by exactly `1` from one element to the next.