Pregunta de entrevista de Texas Instruments

Q. How to reverse a stack? Optimize It.