Google Cloud infrastructure can contain maintenance windows that overlap across services. Given a list of maintenance windows, merge all overlapping or directly adjacent windows and return the smallest equivalent set of non-overlapping windows.
Implement merge_maintenance_windows(windows), where windows is a list of two-element lists. Each window [start, end] represents the half-open interval [start, end), with integer timestamps measured in minutes. Return a list of two-element lists sorted by start. If one window begins exactly when another ends, merge them because there is no uncovered minute between them.
The input list may be unsorted. Do not modify the caller's input list unless your implementation explicitly documents that behavior.
def merge_maintenance_windows(windows):