Remove Duplicates Leetcode Python Beginner