Contains Duplicate Leetcode 217 Python Neetcode