Pergunta de entrevista da empresa Dell Technologies

Given a stack with number reverse the stack order