Databricks interview question

Object oriented design question involving a montonically increasing stack