Techona Interview Question

How to sort this array