Given an array of integers nums containing at least two distinct values, return the second largest distinct value.
Example 1: Input: nums = [4,2,9,9,5] Output: 5
Example 2: Input: nums = [1,1,2] Output: 1
Constraints: 2 <= nums.length <= 100 -1000 <= nums[i] <= 1000 nums contains at least two distinct values.