true if value appears anywhere in nums, and false otherwise.Set stores distinct values and answers "have I seen this before?" in nearly constant time.true if value appears anywhere in nums, and false otherwise.// Run your code to see the output here.