Question d’entretien chez Pulse Secure

Given a stack of integer values, write a program to sort the stack using PUSH and POP operations.