First Duplicate Leetcode Problem Solving