Given an integer array `nums`, return `true` if any value appears at least twice in the array, and return `false` if every element is distinct.
Hash Set Membership
We use a Hash Set to store every number we visit as we iterate through the array. For each number, we check if it is already in the set. If it is, we found a duplicate and return `True`. If we finish the entire array without finding a duplicate, we return `False`. This approach takes O(n) time and O(n) space.