Pergunta de entrevista da empresa CoStar Group

whiteboarding problem to implement stack and functions