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