First Duplicate Value Leetcode Problems On Python