Pregunta de entrevista de Dell Technologies

Given a stack with number reverse the stack order