Leetcode 946. Validate Stack Sequences | Hello Interview