Repeated Number Leetcode Python Coding