Two Stack Problem Leetcode Python Coding Practice