Techona interview question

How to sort this array