Booking.com interview question

Hotel ranking problem