Leetcode Ordered Set Math Definition