Valid Stack Sequence Leetcode Playground C