Google interview question

Heap Question based on scheduling,