Excel Find First Duplicate Values Leetcode Python