Repeated Number Leetcode Python Basic Programs