Smallest Missing Positive Integer Leetcode Problems Python