Remove Duplicates Leetcode Python Solution