Remove Duplicates Leetcode Python Practice