First Duplicate Value Leetcode Javascript Questions W3schools