Check if Array Contains Duplicate Elements Using Hash Set

Given an integer array nums, return true if any value appears at least twice in the array, otherwise return false.

Difficulty:

Console