Typescript Array Find Duplicates Leetcode Contest Prediction