Pergunta de entrevista da empresa BluePi

Write a program to sort the elements in the stack and the last element should be on the top. Do not add any function to the stack