Iterative Health interview question

Typical Leetcode style questions on stacks and strings