Intel Corporation interview question

I had an unexcepected C question regarding stack sorting