Repeated Number Leetcode Python Beginner