Infosys Interview Question

How to sort a stack ?