Qualtrics Interview Question

Coding: A greedy problem and a min/max heap problem