Get Minimum Element From Stack Leetcode Problems Sql