Valid Stack Sequence Leetcode Playground