Repeated And Missing Number Leetcode Python