Fortinet Interview Question

implement priority queue using heap in c