Typescript Array Find Duplicates Leetcode Two Robots At The End Of The World