randRange(0, 99) randRange(0, 99) randRange(0, 99) randRange(0, 99)

Write a function that takes two stacks (A and B) as inputs, with some number of integer values in Stack A, and puts these values in sorted (ascending) order into stack B. There is one int variable named temp that you can use. You may declare no other variable.

[ editor.getValue() ]
window.codeValue = editor.getValue(); window.checkdefvar = "True"; // The first one is already defined in the code so the student should not define more and the others should not be declared at all window.listoftypes = "int,double,float,char";