Synaptics interview question

explaing priority inversion ? how to solve and then question regarding priority inheritance - how to implement?