Databricks Interview Question

Leetcode Max CPU Usage question (Heap and Merge intervals)