Booking.com interview question

None too difficult