Repeated Number Leetcode Python Practice