First Duplicate Value Leetcode Playground Java