Fortinet interview question

implement priority queue using heap in c