First Duplicate Value Leetcode Rating