First Duplicate Value Leetcode Solutions C