Pregunta de entrevista de Qualcomm

Asked a question similar to the leetcode min-stack problem.