Remove Duplicates from Sorted Array II - Leetcode 80 - Python