CGTech Interview Question

Something about sorting an array