Repeated Number Leetcode Python Coding Practice