Freshworks Interview Question

How to reverse a stack?