Repeated Number Leetcode Python Easy