Tesla interview question

How would you unwind a stack?