Given an array of integers nums, return true if any value appears at least twice.
nums = array of integers
true if a duplicate exists, false otherwise
Example 1:
Input:
nums = [1,2,3,1]
Output:
true
Explanation:
The value 1 appears twice.