Affirm interview question

How would you implement a persistent stack?