Question d’entretien chez Qualcomm

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