Priority Inversion is a problem when a medium priority level process interrupts for a shared resource between lower and higher priority level process. Due to this, higher priority process waits for a resource which ideally it should not.
Priority inheritance is the solution of this problem. By using this priority inheritance concept, when a lower priority task or process takes a shared resource from higher priority task, it should inherit the priority from higher priority task for the duration it is going to use share resource. This way, medium level priority task would not be able to interrupt lower priority task which is temporarily hold the higher priority.