Turo needs to determine whether a specific vehicle has conflicting bookings. Given booking records and a vehicle ID, return True if any two bookings for that vehicle overlap, otherwise return False.
Treat each booking interval as half-open: [start, end). Therefore, a booking ending at time 10 does not overlap a booking starting at time 10.
Implement detect_booking_overlap(bookings, vehicle_id). bookings is a list of dictionaries, each containing:
vehicle_id: a stringstart: an integer start timestampend: an integer end timestampReturn a boolean. Only bookings whose vehicle_id matches the requested vehicle should be considered. The input is not necessarily sorted.
def detect_booking_overlap(bookings, vehicle_id):