Given an array of at least two integers nums, return the second largest distinct value. If every value is equal, return that value.
Second Largest Value (Set 4) — the data. This set runs 4 cases: nums holds arrays of 17–32 items, with values from -20 to 24. The hidden cases are the largest of the set.