Two Stack Problem Leetcode Python Practice