Given an integer array nums, return true if any value appears more than once in the array, otherwise return false.
Example:
Approach 1:
Since a hash map can’t have duplicate values we can iterate through the original array and check if the current num is in the set, if not then add it to the set.