Find Missing And Repeated Values Leetcode Python