Repeated Number Leetcode Python Problems