Booking.com interview question

To code a solution for a sorting problem.