Two Stack Problem Leetcode Sql Questions