Qualcomm interview question

Implement priority inversion for a small subset of processes.