Pregunta de entrevista de CoStar Group

whiteboarding problem to implement stack and functions