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