Leetcode Find Missing And Repeating Element In Python For Loops