First Duplicate Value Leetcode Playground Python