eMeasurematics interview question

Optimized sorting algorithm