Pregunta de entrevista de Springboard

Stack based question