Luxoft Interview Question

To solve a sorting problem