First Duplicate Value Leetcode Javascript 30