Databricks Interview Question

Object oriented design question involving a montonically increasing stack