Smallest Missing Positive Integer Leetcode Sql Window Functions