Qualcomm Interview Question

An array and asked me to sort it