Contains Duplicate Leetcode Problem