Ayla Networks interview question

Sort a stack of integers