Microsoft Interview Question

Sort without enough space for the whole array