def longest_sequence(nums: list[int]) -> int:
    # your move 
