QualityKiosk's test execution dashboard receives time windows during which automated tests run. Given a collection of inclusive integer intervals, merge every pair of overlapping or directly adjacent windows and return the resulting non-overlapping intervals in chronological order.
Implement merge_test_windows(intervals). The input intervals is a list of two-element lists, where each interval is [start, end] and start <= end. Return a new list of two-element lists representing the merged windows. The input may be unsorted. Intervals [a, b] and [b + 1, c] are considered directly adjacent and must also be merged.
def merge_test_windows(intervals):