Booking.com Interview Question

Hotel ranking problem