Help me in solving HEAP14 problem

My issue

rearrange the code

Learning course: Heaps
Problem Link: Rearrange insert pseudo-code in Heaps