Leetcode Contains Duplicate 3