Leetcode Duplicate Element Javascript Array Find Item By Hsn