Flexport Interview Question

Question involving performing operations on a stack