Pulse Secure interview question

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