Given an integer array nums, return True if any value appears more than once, and False otherwise.
Input: nums = [1, 2, 3, 1] Output: True Explanation: The value 1 appears at index 0 and index 3.
Input: nums = [1, 2, 3, 4] Output: False Explanation: All four values are distinct.
Input: nums = [1, 1, 1, 3, 3, 4, 3, 2, 4, 2] Output: True Explanation: Multiple values appear more than once.
nums = [1, 2, 3, 1]