Intersection of Two Arrays Using Hash Map

Given two arrays nums1 and nums2, return an array of their intersection. Each element must appear only once.

Difficulty:

Console