Two Stack Problem Leetcode Premium