Pregunta de entrevista de Ramp

It was a leetcode stack problem