First Duplicate Leetcode Problem 643