Inflow interview question

How to an sort array