Booking.com Interview Question

To code a solution for a sorting problem.