Two Stack Problem Leetcode Python Beginner