Konrad Group interview question

How to sort data