Typescript Array Find Duplicates Leetcode Python Challenges