Thoughtworks interview question

Hotel Reservation