Domanda di colloquio di Qualcomm

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