Question d’entretien chez Booking.com

Sorting algorithm as the question