Meta interview question

Sort an array