Repeated Number Leetcode Python Beginners