Two Stack Problem Leetcode Python Solutions