Repeated Number Leetcode Python Solutions