Leetcode Contains Duplicate Ii Solution