Leetcode Smallest Missing Number In Python