Contains Duplicate 2 Leetcode Solution