Intel Corporation Interview Question

I had an unexcepected C question regarding stack sorting