Databricks interview question

Leetcode Max CPU Usage question (Heap and Merge intervals)