Contains Duplicate Ii Leetcode Solution