Intel Corporation Interview Question

sorting an array